This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-20
Channels
- # announcements (1)
- # asami (2)
- # babashka (9)
- # babashka-sci-dev (33)
- # beginners (6)
- # calva (5)
- # cider (1)
- # clj-kondo (2)
- # clojure (79)
- # clojure-dev (8)
- # clojure-europe (1)
- # clojurescript (56)
- # core-logic (1)
- # datalevin (1)
- # emacs (20)
- # funcool (3)
- # holy-lambda (3)
- # honeysql (28)
- # improve-getting-started (11)
- # introduce-yourself (4)
- # lsp (21)
- # off-topic (9)
- # other-languages (5)
- # polylith (3)
- # quil (3)
- # releases (1)
- # rewrite-clj (9)
- # sql (5)
- # tools-deps (29)
- # xtdb (9)
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 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
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