Add source files to the jar

This commit is contained in:
Joshua Suskalo 2021-09-28 19:50:15 -05:00
parent e3571007bf
commit 45015b60b2

View file

@ -95,8 +95,11 @@
This is a thin jar including only the sources."
[opts]
(write-pom opts)
(compile-java opts)
(copy-resources opts)
(when-not (exists? target-dir jar-file)
(b/copy-dir {:target-dir class-dir
:src-dirs source-dirs})
(b/jar {:class-dir class-dir
:jar-file jar-file}))
opts)