I'm guessing that your project.clj
is getting overridden by your file ~/.lein/profiles.clj
. Mine looks like this:
> cat ~/.lein/profiles.clj
{ :user {
:plugins [
[com.jakemccrary/lein-test-refresh "0.16.0"]
[jonase/eastwood "0.2.3"]
[lein-ancient "0.6.0"]
[lein-codox "0.9.3"]
[lein-exec "0.3.6"]
]
:dependencies [
[org.clojure/clojure "1.9.0-alpha13"]
]
:test-refresh { :quiet true
:changes-only true }
; :jvm-opts ["-Xms1g" "-Xmx4g" ] ; "-server"
}
}
I'm assuming your project.clj
should look something like this:
(defproject clj "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure "1.9.0-alpha13"]
[tupelo "0.9.9"]
]
:java-source-paths ["/home/alan/xpr/src"]
:main ^:skip-aot clj.core
:target-path "target/%s"
:profiles {:dev {:dependencies [[org.clojure/test.check "0.9.0"]] }
:uberjar {:aot :all}}
)
Fix up your ~/.lein/profiles.clj
and you should have no problem.