如何改变Clojure或Lein的Clojure默认版本? [英] How to change Clojure or Lein's Clojure default version?

查看:340
本文介绍了如何改变Clojure或Lein的Clojure默认版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道为什么,当我通过 $ clojure $ lein repl code>>(clojure-version)说'1.2.1'。我想要它说'1.5'。

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'.

版本1.5在我的项目由lein管理。我只是想告诉lein默认使用1.5,而不是1.2。

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.

推荐答案

项目,但正在处理: https://github.com/technomancy/leiningen/issues/966

现在的解决方法只是在您的project.clj中指定

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

:升级到Leiningen 2.0。

Further recommendation: upgrade to Leiningen 2.0.

这篇关于如何改变Clojure或Lein的Clojure默认版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆