build: Configure task rules for multiproject builds

This commit is contained in:
Siphalor committed 2026-11-15 21:57:52 +01:00
1 parent fddca3ffd4
commit 4976602a68
5 files changed
+46 -12

No files matched your search

+2 -3
View File
@@ -1,8 +1,8 @@
plugins {
`test-report-aggregation`
`jacoco-report-aggregation`
`maven-publish`
id("de.siphalor.tweed5.root-properties")
id("de.siphalor.tweed5.transitive-tasks")
}
group = "de.siphalor.tweed5"
@@ -41,9 +41,8 @@ reporting {
}
}
tasks.register("test") {
tasks.named("test") {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = "Runs all tests"
subprojects.mapNotNull { it.tasks.findByName("test") }.forEach { dependsOn(it) }
finalizedBy(tasks.named("aggregatedTestReport"), tasks.named("aggregatedCoverageReport"))
}