Hi Ann, we are not using Jacoco.exec format. we are using XML reports only. please find the sonarqube configuration from build.gradle below.
sonarqube {
properties {
property “sonar.projectName”, rootProject.name
property “sonar.projectDescription”, rootProject.name
property “sonar.projectVersion”, “{archiveVersion}"
property "sonar.language", "java"
property "sonar.junit.reportsPath", "{buildDir}/reports”
property “sonar.java.coveragePlugin”, “jacoco”
// property “sonar.jacoco.reportPath”, “{buildDir}/jacoco/test.exec" // Note this property has been deprecated, you should use the sonar.coverage.jacoco.xmlReportPaths property below instead
property "sonar.coverage.jacoco.xmlReportPaths", "{buildDir}classes/java/test/com/comerica/ws/test/jacocoTestReport.xml”
property “sonar.binaries”, “${buildDir}/classes”
property “sonar.sourceEncoding”, “UTF-8”
property “sonar.host.url”, “XXXXXXX”
property “sonar.exclusions”, “/reports/”
property “sonar.dynamicAnalysis”, “reuseReports”
}
}
Let me know for any questions.
Thanks & Regards,
Vamsi