lein-tools-deps
lein-tools-deps copied to clipboard
Special profiles like :provided don't set scope properly on dependencies included via lein-tools-deps
e.g. a project.clj
like this:
(defproject test-profile "0.1.0-SNAPSHOT"
,,,
:plugins [[lein-tools-deps "0.4.3"]]
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
:lein-tools-deps/config {:aliases [:rebl]
:config-files [:install :user :project]}
:profiles {:provided {:lein-tools-deps/config {:aliases [:foo]}
;; :dependencies [[org.clojure/core.async "0.4.490"]]
}
)
Should when running lein install
`lein pomcreate a pom.xml in the jar with the dependencies from the
:fooalias scoped as
provided. e.g. if you were to uncomment the
:dependencies` line you'll see that core.async is marked correctly as a provided in the pom.xml:
,,,
<dependency>
<groupId>org.clojure</groupId>
<artifactId>core.async</artifactId>
<version>0.4.490</version>
<scope>provided</scope>
</dependency>
,,,