Get Sonar report Kotlin, by specifying path to load jacoco xml report
Sonar can't load Kotlin coverage from binary report; see
https://jira.sonarsource.com/browse/MMF-1362
Issue-ID: VID-599
Change-Id: I7ffab337acb83847b3f29f835e25f13ec9daae6c
Signed-off-by: Ittay Stern <ittay.stern@att.com>
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml
index 34699f9..1d2a2ad 100755
--- a/vid-app-common/pom.xml
+++ b/vid-app-common/pom.xml
@@ -38,6 +38,11 @@
<selenium.version>3.141.59</selenium.version>
<sonar.coverage.exclusions>**/webapp/**/*,**/*.js</sonar.coverage.exclusions>
+ <!--Specify path to load jacoco xml report, as Sonar can't load Kotlin coverage from binary report. -->
+ <sonar.coverage.jacoco.xmlReportPaths>
+ ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
+ </sonar.coverage.jacoco.xmlReportPaths>
+
<!-- Skip assembling the zip by default -->
<skipassembly>true</skipassembly>
<nexusproxy>https://nexus.onap.org</nexusproxy>