leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
uosl 2021-04-15T09:38:11.075200Z

(<http://clojure.java.io/resource|clojure.java.io/resource> "clojure/core/cache/wrapped.clj")
returns the core.cache jar while
(<http://clojure.java.io/resource|clojure.java.io/resource> "clojure/core/cache__init.class")
returns the jar of a different dependency (our other project) with core.cache precompiled...

uosl 2021-04-15T09:39:43.075800Z

So it is mix-matching files from different versions. I found this thread https://clojureverse.org/t/deploying-aot-compiled-libraries/2545/ and I can now piece together what is happening

uosl 2021-04-15T09:40:55.076200Z

> Your dependencies become the fixed versions which must be used by any upstream consumers.

uosl 2021-04-15T10:59:41.077500Z

The problem I'm facing now is whether I can write a project.clj that allows both the project to be uberjared, and allows it to be installed/deployed without AOT-compiled files. So far it seems like an either/or affair.

uosl 2021-04-15T13:23:21.078200Z

Looks like the solution is a profile with :prep-tasks []that's used with install and deploy.🎉