File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ plugins {
1010 id(" jacoco" )
1111 id(" org.gradle.test-retry" )
1212 id(" com.adarshr.test-logger" )
13+ id(" jacoco-report-aggregation" )
1314}
1415
1516// TODO: https://github.com/gradle/gradle/issues/15383
@@ -94,27 +95,3 @@ tasks.withType<Test>().configureEach {
9495 isIncludeNoLocationClasses = true
9596 }
9697}
97-
98- // Jacoco configs taken from official Gradle docs: https://docs.gradle.org/current/userguide/structuring_software_products.html
99-
100- // Do not generate reports for individual projects, see toolkit-jacoco-report plugin
101- tasks.jacocoTestReport.configure {
102- enabled = false
103- }
104-
105- // Share the coverage data to be aggregated for the whole product
106- // this can be removed once we're using jvm-test-suites properly
107- configurations.register(" coverageDataElements" ) {
108- isVisible = false
109- isCanBeResolved = false
110- isCanBeConsumed = true
111- extendsFrom(configurations.implementation.get())
112- attributes {
113- attribute(Usage .USAGE_ATTRIBUTE , objects.named(Usage .JAVA_RUNTIME ))
114- attribute(Category .CATEGORY_ATTRIBUTE , objects.named(Category .DOCUMENTATION ))
115- attribute(DocsType .DOCS_TYPE_ATTRIBUTE , objects.named(" jacoco-coverage-data" ))
116- }
117- tasks.withType<Test >().configureEach {
118- outgoing.artifact(extensions.getByType<JacocoTaskExtension >().destinationFile!! )
119- }
120- }
You can’t perform that action at this time.
0 commit comments