luchiniatwork / cambada

Packager for Clojure based on deps.edn (AKA tools.deps). Supporting jar, uberjar and GraalVM's native-image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid sourceDirectory in generated pom

blabno opened this issue · comments

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.