From 04593366cd23884fbe43cd55c43391fa24bf73b1 Mon Sep 17 00:00:00 2001 From: Max Lambrecht Date: Fri, 16 Feb 2024 12:04:36 -0600 Subject: [PATCH] Solve jacoco config issue Signed-off-by: Max Lambrecht --- build.gradle | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index d4fac6fc..9d5a2bb8 100644 --- a/build.gradle +++ b/build.gradle @@ -151,11 +151,6 @@ task jacocoTestReport(type: JacocoReport) { xml.required = true html.required = true } - - jacocoTestReport.dependsOn subprojects.collectMany { subproject -> - subproject.tasks.matching { it.name == 'test' } - } - } coveralls { @@ -165,6 +160,12 @@ coveralls { 'java-spiffe-provider/src/main/java'] } +jacocoTestReport.dependsOn { + subprojects.collectMany { project -> + project.tasks.matching { it.name in ['javadoc', 'test'] } + } +} + // copy submodules jars to a common folder for deploy task copyJars(type: Copy) { duplicatesStrategy = DuplicatesStrategy.INCLUDE