This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 4be1fa6  root project wasn't showing up in coverage report ... oops!
4be1fa6 is described below

commit 4be1fa62c0f8c9ad99493de09324bf9306f4e36a
Author: Paul King <[email protected]>
AuthorDate: Tue Oct 26 20:17:59 2021 +1000

    root project wasn't showing up in coverage report ... oops!
---
 .../main/groovy/org.apache.groovy-jacoco-aggregation.gradle    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/buildSrc/src/main/groovy/org.apache.groovy-jacoco-aggregation.gradle 
b/buildSrc/src/main/groovy/org.apache.groovy-jacoco-aggregation.gradle
index bd3270b..0a34cf2 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-jacoco-aggregation.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-jacoco-aggregation.gradle
@@ -21,13 +21,13 @@ if (sharedConfiguration.hasCodeCoverage.get()) {
     // we only apply the jacoco configuration if a system property is set, in 
order to avoid instrumentation if we
     // are not specifically asking for code coverage
     tasks.register("jacocoAllReport", JacocoReport) {
-        subprojects { subproject ->
-            subproject.plugins.withType(JacocoPlugin).configureEach {
-                if (subproject.sourceSets.test.allSource.srcDirs.any { 
it.exists() }) {
+        allprojects { p ->
+            p.plugins.withType(JacocoPlugin).configureEach {
+                if (p.sourceSets.test.allSource.srcDirs.any { it.exists() }) {
                     def testTasks = []
-                    subproject.tasks.matching({ t -> 
t.extensions.findByType(JacocoTaskExtension) }).each { testTask ->
+                    p.tasks.matching({ t -> 
t.extensions.findByType(JacocoTaskExtension) }).each { testTask ->
                         if ((testTask instanceof Test)) {
-                            sourceSets subproject.sourceSets.main
+                            sourceSets p.sourceSets.main
                             executionData(testTask)
                             testTasks << testTask
                         }

Reply via email to