I'm working on a fairly significant multiproject build which has many
dependencies (both inter-project and 3rd party). For reasons I won't get
into, I have to have explicit control over all dependencies used in the
project, so I've had to disable transitive dependency resolution for 3rd
party libraries.

Right now, I'm using
allprojects {
 afterEvaluate {
  configurations.each { configuration -> configuration.transitive = false }
 }
}

Which seems to do the job.

Of course, with no transitive dependencies, if my project Foo depends on
ReallyCoolLibrary, and my project Bar depends on Foo, then Bar also has to
explicitly depend on ReallyCoolLibrary. What I'd love is to find a way to
automatically include transitive dependencies as declared by my own
projects.

Is there a good way to do this?

Reply via email to