My deps.edn looks like this:
{
:paths ["src/cljc"]
:aliases {
:jar {:extra-deps {luchiniatwork/cambada {:mvn/version "1.0.2"}}
:main-opts ["-m" "cambada.jar"
"-m" "xyz.core"
"--app-group-id" "abc"
"--app-artifact-id" "xyz"]}}}
Now clj -A:jar --app-version 0.0.1 generates pom.xml that includes this:
<build>
<sourceDirectory>src</sourceDirectory>
</build>
while clj -Spom results with this:
<build>
<sourceDirectory>src/cljc</sourceDirectory>
</build>
The jar built by cambada includes both cljs/xyz/core.cljc and xyz/core.cljc. I think that only the latter is correct and it might be result of bad sourceDirectory evaluation.
My
deps.ednlooks like this:Now
clj -A:jar --app-version 0.0.1generates pom.xml that includes this:while
clj -Spomresults with this:The jar built by cambada includes both
cljs/xyz/core.cljcandxyz/core.cljc. I think that only the latter is correct and it might be result of badsourceDirectoryevaluation.