Fork me on GitHub
#depstar
<
2021-09-27
>
mike_ananev12:09:16

@seancorfield Is there any way to modify classpath for :sync-pom? I use depstar and have the following alias:

:sync-pom {:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.278"}}
           :exec-fn hf.depstar/pom
           :exec-args {:sync-pom true}}
When I call clojure -X:sync-pom then depstar creates or modifies the pom.xml Depstar includes to pom.xml all deps from :deps section. For some reasons I need to include into pom.xml deps from :test alias. When I call clojure -R:test -X:sync-pom I expect that :deps + :test dependecies will be merged in put to pom.xml. I see that deps from :test alias are not added to pom.xml, but only form :deps section So, how to modify classpath for :sync-pom?

seancorfield17:09:47

@mike1452 depstar is archived. I recommend using tools.build for managing your pom.xml file instead. https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-write-pom lets you pass a basis so you have full control over the contents.