From dd64788f75f724223ba5e55014909d55e481a4a8 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 12 Aug 2023 14:44:31 -0700 Subject: [PATCH 1/2] Minor cleanup --- examples/lib/bld/bld-wrapper.properties | 2 +- update-test-resource.sh => update-test-resources.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename update-test-resource.sh => update-test-resources.sh (100%) diff --git a/examples/lib/bld/bld-wrapper.properties b/examples/lib/bld/bld-wrapper.properties index 707f243..fe11aa3 100644 --- a/examples/lib/bld/bld-wrapper.properties +++ b/examples/lib/bld/bld-wrapper.properties @@ -1,6 +1,6 @@ bld.downloadExtensionJavadoc=false bld.downloadExtensionSources=true -bld.extension-pmd=com.uwyn.rife2:bld-jacoco-report:0.9.0-SNAPSHOT +bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.0-SNAPSHOT bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES bld.downloadLocation= bld.version=1.7.0 \ No newline at end of file diff --git a/update-test-resource.sh b/update-test-resources.sh similarity index 100% rename from update-test-resource.sh rename to update-test-resources.sh From ff3278bb806b7995812aa1073e80045bac08b419 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 12 Aug 2023 14:44:41 -0700 Subject: [PATCH 2/2] Added sonar instructions --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b376345..f2a7281 100644 --- a/README.md +++ b/README.md @@ -26,3 +26,18 @@ public void jacoco() throws IOException { - The execution coverage data will be automatically recorded in the `build/jacoco/jacoco.exec` file. Please check the [JacocoReportOperation documentation](https://rife2.github.io/bld-jacoco-report/rife/bld/extension/JacocoReportOperation.html#method-summary) for all available configuration options. + +### SonarQube/SonarCloud + +To use a JaCoCo report with [sonar](https://www.sonarsource.com/), add something like the following to your `sonar-project.properties`: + +```properties +sonar.organization=YOUR_ORGANIZATION +sonar.projectKey=YOUR_PROJECT_KEY +sonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml +sonar.sources=src/main/java/ +sonar.tests=src/test/java/ +sonar.java.binaries=build/main,build/test +sonar.java.libraries=lib/runtime/*.jar + +``` \ No newline at end of file