Fork me on GitHub
#tools-build
<
2022-07-25
>
Drew Verlee17:07:21

Why is only the first source directory passed to https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-write-pom's src-dirs "considered" and why are the rest "skipped". Eg if you pass ["src/clj" "src/cljc"] you get "skipping paths: sr/cljc" as a result of the code https://github.com/clojure/tools.deps.alpha/blob/f7a3493a7ffa32386eefd94f118be6ddb61c138b/src/main/clojure/clojure/tools/deps/alpha/gen/pom.clj#L87:

(when path
         (when (seq paths) (apply printerrln "Skipping paths:" paths)) <--- skipping
         [::pom/build (gen-source-dir path)])

Alex Miller (Clojure team)17:07:39

Maven only supports one

👍 1
Drew Verlee17:07:08

So i don't need to do anything here right? Is the src-dir just used to build a name to give to the pom? I thought it was collecting information from those directories.

Alex Miller (Clojure team)17:07:26

That message is just when it's building the pom that can go in the jar, so probably not important to you