Fork me on GitHub
Norman Kabir22:03:41

Is there an example of a project that generates a jar (rather than an uberjar). I'd like to be able to share Polylith artifacts with colleagues that are not using Polylith (yet). I tried modifying the Polylith build.clj but was unsuccessful.


Yes, the project does that, and you can build the jar from the with this command: clojure -T:build jar :project api

Norman Kabir10:03:22

Thank you! The key that I had missed was the "transitive" option to get the :local/root dependencies: > If you are working in a monorepo, such as the, and need to build library JAR files from projects that rely on :local/root dependencies to specify other source components, you will generally want to pass :transitive true to the jar task.

👍 1