How to configure leiningen to use newest Clojure v

2019-02-17 02:57发布

问题:

When I start clojure repl for specific project, for leiningen is enough to specify correct clojure version in the concrete project.clj file as described here. But when I start repl outside the project then the older version is started. In my case the older version is 1.5.1 and I want to upgrade to 1.6.0. Here has proposed not working solution, but in the comments bellow is said that in lieingen version 2.1 the problem is resolved. I'm with version 2.3.4 of leiningen but the proposed solution doesn't work for me.

回答1:

according to technomancy on IRC: "repls outside projects are hard coded 
to lein's version of clojure"

Source: https://github.com/technomancy/leiningen/issues/1035#issuecomment-35927505