dweiss commented on code in PR #15679:
URL: https://github.com/apache/lucene/pull/15679#discussion_r2779640760


##########
build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/CodeCoveragePlugin.java:
##########
@@ -44,10 +46,33 @@ public void apply(Project project) {
 
       if (withCoverage) {
         project.getPlugins().apply(JacocoLogPlugin.class);
+        project.getPlugins().apply("jacoco-report-aggregation");
+
+        project
+            .getExtensions()
+            .getByType(ReportingExtension.class)
+            .reports(
+                reports -> {
+                  reports
+                      .register("testCodeCoverageReport", 
JacocoCoverageReport.class)
+                      .configure(
+                          report -> {
+                            report.getTestSuiteName().set("test");
+                          });
+                });
+
+        project
+            .getSubprojects()
+            .forEach(
+                p -> {
+                  if (p.file("src/test").exists()) {
+                    project.getDependencies().add("jacocoAggregation", p);
+                  }
+                });

Review Comment:
   Don't know how to pass an array of lazily computed project refs here (only 
those that eventually end up being java projects). Provider returning an 
array/list doesn't work.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to