From a61f3fbf68f643b9dcb4ed458e5170340f2818f1 Mon Sep 17 00:00:00 2001
From: Decebal Suiu <decebal.suiu@gmail.com>
Date: Sun, 5 Feb 2023 12:47:05 +0200
Subject: [PATCH] Integrate Jacooco with Sonar

---
 pom.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pom.xml b/pom.xml
index c3867c1f..65e08bae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -224,6 +224,11 @@
                 <sonar.projectKey>pippo-java_pippo</sonar.projectKey>
                 <sonar.projectName>pippo</sonar.projectName>
                 <sonar.moduleKey>${project.groupId}:${project.artifactId}</sonar.moduleKey>
+                <!-- Sonar JaCoCo properties -->
+                <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
+                <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
+                <sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
+                <sonar.language>java</sonar.language>
             </properties>
             <activation>
                 <activeByDefault>false</activeByDefault>