Fork me on GitHub
#leiningen
<
2022-06-04
>
borkdude09:06:29

I want to force a clojure version in leiningen

borkdude09:06:50

I'm trying :clj-1.11 {:dependencies [[org.clojure/clojure "1.11.1"]]} in profiles.clj and

lein with-profiles clj-1.11 repl

borkdude09:06:00

But it still prints:

Clojure 1.10.3

borkdude09:06:10

Note, I want to do this outside of a project

borkdude09:06:06

I think I tried about any combination of ^:replace and ^:displace by now

vemv12:06:50

perhaps Lein forces its own version when used outside of a project?

borkdude12:06:34

@U45T93RA6 Could be. I'm trying to make this work: https://github.com/babashka/cli#leiningen It does work inside a project, but the point is that you can do this outside a project too :)