Fork me on GitHub
#polylith
<
2022-03-20
>
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.

tengstrand06:03:33

Yes, the https://github.com/polyfy/polylith/tree/master/projects/api project does that, and you can build the jar from the https://github.com/polyfy/polylith 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 https://polylith.gitbook.io/, 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. https://github.com/seancorfield/build-clj

👍 1