Phil Hagelberg writes: > With some help from Nelson Morris I've pushed out the 2.3.1 release of > Leiningen. This fixes the self-install issues as well as the issue > around AOT classes not being included in jar files. It also adds a new > flag (:monkeypatch-clojure-test false) you can use to disable > Leiningen's monkeypatch of the `clojure.test` library.
It looks like there's still one issue[1] remaining. If your project relies
needs AOT but does not set `:aot` in project.clj, relying on the
implicit AOT from `:main` instead, you will have to add in an explicit
`:aot` entry. I strongly recommend being explicit about `:aot` anyway.
Even better, you can scope the AOT to only being active during the
uberjar task, which I also highly recommend:
:profiles {:uberjar {:aot :all}}
That way you won't have stray class files interfering with reloading
during development.
We'll probably cut a 2.3.2 release soon addressing this since it was an
unintentional breaking change--I meant to wait for 3.0 to fix the
implicit :aot problem.
-Phil
[1] https://github.com/technomancy/leiningen/issues/1289[1]
pgpvmzhwqkopA.pgp
Description: PGP signature
