Fork me on GitHub
#polylith
<
2023-08-25
>
Roma09:08:49

Hello, I'm trying to use polylith to produce libraries (not executable jars), I use polylith build.clj as a reference, I've copied and adjusted lifted-basis and jar functions, I can build a jar successfully using clj -T:build jar :project project-name. The problem I have is that there are no clojure sources in the resulting jar file, only pom.xml and pom.properties. Should I explicitly copy all the sources from all project dependencies? Is it missing in polylith build.clj? I can see a println statement, which says that something is being copied (https://github.com/polyfy/polylith/blob/master/build.clj#L170) but I don't see any b/copy-dir calls. Am I missing something? Thank you in advance.

tengstrand09:08:38

Have a look in the https://github.com/polyfy/polylith/blob/issue-318/build.clj branch that I’m working on, I think it has been fixed there.

Roma09:08:35

Yes, it fixes my problem. Thank you @tengstrand!

👍 2