简体   繁体   English

如何更改Clojure或Lein的Clojure默认版本?

[英]How to change Clojure or Lein's Clojure default version?

I'm not sure why but when I enter the REPL through $ clojure or $ lein repl , >(clojure-version) says '1.2.1'. 我不确定为什么,但是当我通过$ clojure$ lein repl进入REPL时, >(clojure-version)说'1.2.1'。 I want it to say '1.5'. 我希望它说'1.5'。

Version 1.5 works fine in my projects managed by lein. 版本1.5在我的lein管理的项目中运行良好。 I just want to tell lein to always use 1.5 by default, instead of 1.2. 我只想告诉lein默认使用1.5而不是1.2。

Currently this isn't supported outside a project, but it's being worked on: https://github.com/technomancy/leiningen/issues/966 目前在项目之外不支持此项,但正在开展工作: https//github.com/technomancy/leiningen/issues/966

A workaround for now is just to specify it in your project.clj 现在的解决方法就是在project.clj中指定它

Further recommendation: upgrade to Leiningen 2.0. 进一步的建议:升级到Leiningen 2.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM