plugins { base id("test-report-aggregation") id("jacoco-report-aggregation") } repositories { mavenLocal() mavenCentral() maven("my internal place") maven("my other internal place") // gameplay services Quests proto's maven("https://repo.spring.io/plugins-release/") maven("https://oss.sonatype.org/content/repositories/snapshots") } dependencies { testReportAggregation(project(":serviceA")) testReportAggregation(project(":serviceB")) jacocoAggregation(project(":serviceA")) jacocoAggregation(project(":serviceB")) } reporting { reports { val testAggregateTestReport by creating(AggregateTestReport::class) { testType.set(TestSuiteType.UNIT_TEST) } val testCodeCoverageReport by creating(JacocoCoverageReport::class) { testType.set(TestSuiteType.UNIT_TEST) } } } tasks { check { dependsOn(named("testAggregateTestReport")) dependsOn(named("testCodeCoverageReport")) } }