I have a project with a dependency. I don't want the transitive dependencies
of this dependency brought into the project, so I set transitive=false.
dependencies {
compile("org.apache.hadoop:hadoop-core:0.20.2") {
transitive = false;
}
}
For this project, the dependencies are as I expected if I run "gradle
dependencyReport", i.e. there are no transitive dependencies of hadoop-core
anywhere.
Now if I reference this project from another project, the transitive
dependencies for "hadoop-core" get added to the testCompile configuration
for the new project.
dependencies {
compile project(":myHadoopProject")
}
In this second project, if I run "gradle dependencyReport", all of the
hadoop-core dependencies have been added to the testCompile configuration.
Is there a way in my multi-project setup to turn off transitive dependencies
entirely for "hadoop-core", so the second project will not add them to any
configuration? I don't want to set the transitive flag to false on the
project dependency in the second project, as this isn't entirely what I want
- I would need to then specify all dependencies by hand from the first
project that I need.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Transitive-false-still-references-transitive-dependencies-tp3404629p3404629.html
Sent from the gradle-user mailing list archive at Nabble.com.