Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Clojure CLI by

I have been experimenting with a "dev clojure compiler". This means a fork of org.clojure/clojure that has some extra code emitted for debugging purposes.

It would be great if I could swap the compiler to a "dev compiler" from clojars on my dev alias , something like :

:dev {:extra-deps {org.my-own/clojure {:mvn/version "1.11.0"}}
           :exclude-clojure? true}

which will allow users to swap compilers with special capabilities.


1 Answer

+2 votes
selected by
Best answer

This can be achieved using :classpath-overrides {org.clojure/clojure nil}} in an alias.

/tmp $ clj -Spath -Sdeps '{:aliases {:no-clj {:classpath-overrides {org.clojure/clojure nil}}}}' -A:no-clj