Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.1.3
-
None
-
None
-
Patch
Description
We have use cases where we'd like to retrieve specific dependencies without their transitive dependencies, yet we'd like to use Maven's dependencyManagement feature to resolve the dependency versions. It would be very useful if the dependencies task had an option to exclude transitive dependencies - much like the many of the Maven plugins support (e.g. dependency:copy-dependencies, assembly, etc.).
I've attached a patch that adds an excludeTransitive flag to the dependencies tasks.