How do you change Clojure version in Leiningen and LightTable?

倾然丶 夕夏残阳落幕 提交于 2019-12-21 04:07:09

问题


When I type (clojure-version) into my repl in LightTable, I get "1.5.1" as output. Is there any way to upgrade to 1.6.0?

I am assuming that it is drawing the Clojure version from Leiningen (2.3.4 on my machine), which is stocked with 1.5.1 out of the box. How can I make sure that both Leiningen and LightTable are using the most recent version of Clojure? I have googled around and can't find any clear answers.

I did find this SO question, but it didn't address my problem specifically. Is there like a "lein update" command I can call that automates this process, and which LightTable will recognize and pick up, or is this wishful thinking?


回答1:


To upgrade your Leiningen version, run lein upgrade, and type 'Y' when asked if you want to continue. This will automatically upgrade your Leiningen to the latest stable release. At the time of writing this used Clojure 1.6.0.

To upgrade your project's version of Clojure, look in your project.clj for the [org.clojure/clojure] dependency, and change the version number to the desired version.



来源:https://stackoverflow.com/questions/24094597/how-do-you-change-clojure-version-in-leiningen-and-lighttable

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