From 6084416cb5da62cdd56de742d4fb33417a9ad12b Mon Sep 17 00:00:00 2001 From: Konrad Windszus Date: Mon, 3 Jun 2024 21:13:38 +0200 Subject: [PATCH] Enable code coverage again for all modules Overhead should be neglectable for modules not having tests yet Rely on Sonarcloud default paths for discovering jacoco reports (works fine even for submodules) --- org.eclipse.sisu.inject/pom.xml | 13 +------------ org.eclipse.sisu.plexus/pom.xml | 15 +-------------- pom.xml | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 33 deletions(-) diff --git a/org.eclipse.sisu.inject/pom.xml b/org.eclipse.sisu.inject/pom.xml index 5f03a992..8dc3a2f9 100644 --- a/org.eclipse.sisu.inject/pom.xml +++ b/org.eclipse.sisu.inject/pom.xml @@ -309,7 +309,7 @@ maven-surefire-plugin true - -Xmx64m --add-opens java.base/java.lang=ALL-UNNAMED @{jacoco.argLine} + -Xmx64m --add-opens java.base/java.lang=ALL-UNNAMED @{argLine} com.google.guava:guava com.google.inject:guice @@ -474,16 +474,5 @@ - - code-coverage - - - - org.jacoco - jacoco-maven-plugin - - - - diff --git a/org.eclipse.sisu.plexus/pom.xml b/org.eclipse.sisu.plexus/pom.xml index f1d20569..64923402 100644 --- a/org.eclipse.sisu.plexus/pom.xml +++ b/org.eclipse.sisu.plexus/pom.xml @@ -297,7 +297,7 @@ maven-surefire-plugin true - -Xmx64m @{jacoco.argLine} + -Xmx64m @{argLine} com.google.guava:guava com.google.inject:guice @@ -441,17 +441,4 @@ - - - code-coverage - - - - org.jacoco - jacoco-maven-plugin - - - - - diff --git a/pom.xml b/pom.xml index 2cd259fd..51fd11e1 100644 --- a/pom.xml +++ b/pom.xml @@ -117,13 +117,6 @@ https://raw.githubusercontent.com/eclipse-sisu/sisu-project/main/license-header-epl2.txt ${project.inceptionYear}-2024 - - - - ${maven.multiModuleProjectDirectory}/org.eclipse.sisu.inject/target/site/jacoco/jacoco.xml, - ${maven.multiModuleProjectDirectory}/org.eclipse.sisu.plexus/target/site/jacoco/jacoco.xml - - 3.2.5 3.6.3 @@ -681,5 +674,17 @@ Bundle-DocURL: http://www.eclipse.org/sisu/ + + + code-coverage + + + + org.jacoco + jacoco-maven-plugin + + + +