I believe that if I run
gradle foo
, this should run the task foo in all subprojects.
Now the command:
gradle dependencies
sadly behaves against that general pattern, i.e. it only executs inthe root project.
In my case case I have a root project without any java sources, and multiple subprojects with java sources, and I would like to get the dependencies of each of those. I copied snippets from the gradle project itself:
configurations {
runtime {
visible = false
}
testRuntime {
extendsFrom runtime
}
}
dependencies {
runtime project(':foo')
runtime project(':bar')
}
But this still does not give me the test dependencies, e.g. junit (same for the gradle project itself). I can call
gradle :foo:dependencies :bar:dependencies
but this is cumbersome.
Is there some other not too hacky trick to get a nice overview?