clojure-maven-plugin icon indicating copy to clipboard operation
clojure-maven-plugin copied to clipboard

Would be nice to depend on nrepl (etc.) via plugin dependencies instead of project dependencies

Open jstoneham opened this issue 11 years ago • 1 comments

It would be nice to be able to use the REPL extensions by depending on the repl artifacts like nrepl, but not have to put them in my project's actual dependency list, instead putting them on the dependencies list of the plugin itself. That way we don't pollute downstream dependencies or assemblies.

jstoneham avatar Jun 05 '13 19:06 jstoneham

You can declare the nrepl dependency in scope "test" and "provided". It will still be picked up by the clojure:nrepl goal, but doesn't pollute downstream.

See http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html for reference.

sebhoss avatar Aug 29 '13 09:08 sebhoss