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

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

问题描述

我不知道为什么但是当我通过 $clojure$lein repl 进入 REPL 时,>(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

Currently this isn't supported outside a project, but it's being worked on: 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天全站免登陆