no
05/26/2025, 11:51 AMdependencies {
add("instrumentedRuntime", project(":producer"))
}
`project(":producer") requires me to know the name of the producing project. It seems to me there is a way to do this without knowing the names of the producing project like the aggregate test reports plugin does.Martin
05/26/2025, 11:55 AMMartin
05/26/2025, 11:57 AMMartin
05/26/2025, 11:57 AMno
05/26/2025, 12:01 PMno
05/26/2025, 12:01 PMno
05/26/2025, 12:01 PMMartin
05/26/2025, 12:02 PMno
05/26/2025, 12:02 PMno
05/26/2025, 12:02 PMMartin
05/26/2025, 12:07 PMtest-report-aggregation
also requires you to explicitely name the dependencies?
https://docs.gradle.org/current/samples/sample_jvm_multi_project_with_test_aggregation_standalone.html
Declare dependencies using the testReportAggregation configuration
no
05/26/2025, 12:08 PMMartin
05/26/2025, 12:08 PMVampire
05/26/2025, 1:52 PMa
, b
, c
, d
,
a
depends on b
,
b
depends on c
,
c
depends on b
,
and you use one of the aggregation plugins on a
, then it inherits the dependencies you declared, so will try to aggregate on a
, b
, and c
, but not d
,
and uses an artifact view to filter only the project dependencies and by using an artifact view only getting those that actually provide that variant.
Alternatively, you can declare explicitly which projects to aggregate, if you for example also want to include d
in the aggregation.Vampire
05/26/2025, 1:54 PMVampire
05/26/2025, 1:56 PMdependencies {
allprojects.forEach {
add("instrumentedRuntime", it)
}
}
should be project isolation compatible I'd guess, as you neither read from nor write to the model of the other projects but just depend on them.
allprojects { ... }
is evil even without project isolation, allprojects
is not, if you just use it like that and not to reach into the models.no
05/26/2025, 3:14 PM