How to change Clojure or Lein's Clojure default version?

╄→гoц情女王★ 提交于 2019-12-29 09:01:26

问题


I'm not sure why but when I enter the REPL through $ clojure or $ lein repl, >(clojure-version) says '1.2.1'. I want it to say '1.5'.

Version 1.5 works fine in my projects managed by lein. I just want to tell lein to always use 1.5 by default, instead of 1.2.


回答1:


Currently this isn't supported outside a project, but it's being worked on: https://github.com/technomancy/leiningen/issues/966

A workaround for now is just to specify it in your project.clj

Further recommendation: upgrade to Leiningen 2.0.



来源:https://stackoverflow.com/questions/15170388/how-to-change-clojure-or-leins-clojure-default-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!