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.

Thanks!

1 Answer

+2 votes
by
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
src:/Users/borkdude/.m2/repository/org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.jar:/Users/borkdude/.m2/repository/org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.jar
...