Update lein project from clojure 1.2.1 to 1.3.0-beta1

I have a leiningen project that uses clojure 1.2.1. I would like to add a dependency to a package that requires clojure 1.3.0-beta1. So I decided to upgrade my project to a newer version.

Honestly, I was not sure what that meant, but I did the following.

In my .clj project, I changed my dependency on [org.clojure / clojure "1.2.1] to [org.clojure / clojure" 1.3.0 "]

I use swank, so I changed the swank clojure dependency to [swank-clojure "1.3.2"].

Then i ran

lein deps

Finally, I manually edited the / usr / bin / lein file to modify the CLOJURE_JAR variable to point to the new clojure jar.

When I start hanging around with lein swank. It starts fine, and now I get the following warning messages like this ..

Warning: default-javac options are not declared dynamic, and therefore are not dynamically retellable>, but its name suggests otherwise. Specify either: default dynamic options-javac or> change name.

I think this is due to clojure 1.3.0.

Then I launch Aquamacs and run slime-connect. REPL starts normally, but when you call clojure, the version if you get "1.2.1".

; SLIME 20100404 user> (clojure -version) "1.2.1"

Is there anything else I need to do?

+4
source share
1 answer

I think you need to add :exclusions list to the swank-clojure specification, for example:

 :dev-dependencies [[swank-clojure "1.3.2" :exclusions [org.clojure/clojure]]] 

although, I just checked my installation and clojure 1.3 worked out of the box. I think you just forgot to call lein clean before lein deps ...

+4
source

All Articles