我想使用Leiningen REPL的Clojure 1.7。
在http://clojure.org/downloads的Clojure下载页面让我相信我只需要在profile.clj文件中添加Clojure 1.7作为依赖项。我在~/.lein/profiles.clj
中做过的。
mike@Mikes-MBP-2:~$ brew upgrade leiningen
Error: leiningen 2.5.1 already installed
mike@Mikes-MBP-2:~$ cat ~/.lein/profiles.clj
{:user
{:dependencies [[org.clojure/clojure "1.7.0"]]
:plugins [[lein-pprint "1.1.1"]]
}
}
mike@Mikes-MBP-2:~$ lein repl
nREPL server started on port 54016 on host 127.0.0.1 - nrepl://127.0.0.1:54016
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=>
让lein repl
使用Clojure 1.7还需要做些什么?
答案 0 :(得分:1)
您始终可以从使用Clojure 1.7的项目的上下文中运行lein repl
。
(defproject sandbox "0.1.0-SNAPSHOT"
:description "A project to run lein repl with a specific clojure version"
:dependencies [[org.clojure/clojure "1.7.0-RC1"]])