I've seen a lot of places where some dependencies in Clojure project are marked with :scope "provided"
(example).
What does it mean?
I've seen a lot of places where some dependencies in Clojure project are marked with :scope "provided"
(example).
What does it mean?
You can read about maven scopes, since it is the same thing. Difference between maven scope compile and provided for JAR packaging . So as far as i can understand, if you use this lib in your project, you should also add these dependencies to your project.clj, together with the lib itself (still i can be mistaken)
There are also some other scopes you can use: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
This is essentially a maven concept. Provided
means that the given dependency is already packaged(or "provided" if you will) with the environment. The jar is necessary for compiling but it won't be packaged with the app. Also these are not transitive dependencies.
To understand more about transitive dependency refer here.
You can read about maven scopes, since it is the same thing. Difference between maven scope compile and provided for JAR packaging . So as far as i can understand, if you use this lib in your project, you should also add these dependencies to your project.clj, together with the lib itself (still i can be mistaken)
There are also some other scopes you can use: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
© 2022 - 2024 — McMap. All rights reserved.
:scope "test"
instead of:test
profile? – Heinrick