How to get Leninen to use a specific version of swank-clojure?

Here is my project.clj:

(defproject hello-world "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.3.0"]] :dev-dependencies [[swank-clojure "1.5.0-SNAPSHOT"]] :plugins [[lein-swank "1.4.3"]]) 

Leiningen loads swank clojure 1.4.0 every time I run lein swank .

(I am using leiningen 1.7.0)

+4
source share
2 answers

I don’t think you need both :plugins swank and :dev-dependencies .
try only with dev dependencies

0
source

Assuming you always want to use the same version of swank-clojure (which is also a lane stroke), you can run (for leiningen 1.x):

 lein plugin install swank-clojure "1.5.0-SNAPSHOT" 

For leiningen 2.x, you can add the following: plugins in the profile.clj file of your lein directory:

 [lein-swank "1.5.0-SNAPSHOT"] 

and the plugin will be used from all your leiningen projects without specifying requirements in the project file.

0
source

Source: https://habr.com/ru/post/1401040/


All Articles