Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special profiles like :provided don't set scope properly on dependencies included via lein-tools-deps #76

Open
RickMoynihan opened this issue Jan 7, 2019 · 0 comments

Comments

@RickMoynihan
Copy link
Owner

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 asprovided. 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>
,,,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant