From 5decf255d6f23abfdfe783657dd56900f5758c64 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Thu, 3 Jan 2019 16:53:40 -0500 Subject: Add Sonar Kotlin support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rework parent pom so configuration can be inherited for all modules from root ccsdk-apps/pom.xml. Also updated some pom description so it is better presented within Sonar. These commands can be used locally to publish report to Sonar: mvn clean install -e -Dsonar mvn sonar:sonar -e -Dsonar -Dsonar.host.url=https://sonar.onap.org Note: kotlin code coverage is not fully functional due to https://github.com/jacoco/jacoco/issues/763 That issue has been fixed in jacoco master branch, but hasn't been released. Once released, in version 0.8.3, we can override version of jacoco plugin for ccsdk-apps. Change-Id: Ic382a4d0df9d14a82536993d2dfa55d7f105f951 Issue-ID: CCSDK-725 Signed-off-by: Alexis de Talhouët --- pom.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index 911d8410..d6dc5c03 100755 --- a/pom.xml +++ b/pom.xml @@ -21,18 +21,45 @@ ONAP + + + + + src/main + + src/test + + **/*.java,**/*.kt + + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml + + components ms + + + + org.jacoco + jacoco-maven-plugin + + ${jacoco.version} + + + + scm:git:ssh://git@${onap.git.host}/apps.git scm:git:ssh://${onap.git.host}:${onap.git.port}/${onap.git.project}/apps.git ${onap.git.protocol}://${onap.git.host}/projects/${onap.git.project}/repos/apps/browse - blackduck @@ -71,4 +98,5 @@ + -- cgit 1.2.3-korg