leiningen

borkdude 2022-06-04T09:21:29.881789Z

I want to force a clojure version in leiningen

borkdude 2022-06-04T09:21:50.832089Z

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

lein with-profiles clj-1.11 repl

borkdude 2022-06-04T09:22:00.492999Z

But it still prints:

Clojure 1.10.3

borkdude 2022-06-04T09:24:10.797479Z

Note, I want to do this outside of a project

borkdude 2022-06-04T09:35:06.001349Z

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

vemv 2022-06-04T12:28:50.345809Z

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

borkdude 2022-06-04T12:30:34.041629Z

@vemv 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 :)