From 621888e708275d68f45946afbbdc1c7e4db64dde Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Fri, 17 Jan 2020 09:54:02 -0500 Subject: Update sonar config for sonarcloud Update sonar and jacoco config for latest sonar scan version, compatible with sonarcloud Change-Id: I4660a685742675f0b7fd6c762b631a66ca4a244c Issue-ID: CCSDK-2029 Signed-off-by: Dan Timoney --- .../setup/src/main/resources/pom-template.xml | 210 ++++++++++++--------- 1 file changed, 123 insertions(+), 87 deletions(-) (limited to 'odlparent/setup/src/main/resources/pom-template.xml') diff --git a/odlparent/setup/src/main/resources/pom-template.xml b/odlparent/setup/src/main/resources/pom-template.xml index d663031b..25b1e816 100755 --- a/odlparent/setup/src/main/resources/pom-template.xml +++ b/odlparent/setup/src/main/resources/pom-template.xml @@ -41,6 +41,18 @@ + + 3.7.0.1746 + 3.2 + jacoco + + \${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,\${project.reporting.outputDirectory}/jacoco-it/jacoco.xml + + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + + 0.8.5 + 1.8 1.8 @@ -49,13 +61,9 @@ https://nexus.onap.org /content/sites/site/\${project.groupId}/\${project.artifactId}/\${project.version} - 0.7.7.201606060606 - 3.2 - jacoco - - **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + \${basedir}/src/main/resources/swagger.properties @@ -87,10 +95,7 @@ src/main/yang-gen-sal true - java - jacoco - \${project.build.directory}/surefire-reports - \${project.version} + 0.7.0-SNAPSHOT @@ -468,88 +473,13 @@ org.sonarsource.scanner.maven sonar-maven-plugin - 3.6.0.1398 + ${sonar.scanner.version} - - org.jacoco - jacoco-maven-plugin - \${jacoco.version} - - - - **/gen/** - **/generated-sources/** - **/yang-gen/** - **/pax/** - - - - - - pre-unit-test - - prepare-agent - - - - \${project.build.directory}/code-coverage/jacoco-ut.exec - - surefireArgLine - - - - - post-unit-test - test - - report - - - - \${project.build.directory}/code-coverage/jacoco-ut.exec - - \${project.reporting.outputDirectory}/jacoco-ut - - - - pre-integration-test - pre-integration-test - - prepare-agent - - - - \${project.build.directory}/code-coverage/jacoco-it.exec - - failsafeArgLine - - - - - post-integration-test - post-integration-test - - report - - - - \${project.build.directory}/code-coverage/jacoco-it.exec - - \${project.reporting.outputDirectory}/jacoco-it - - - - + org.apache.maven.plugins maven-surefire-plugin @@ -720,6 +650,99 @@ org.jacoco jacoco-maven-plugin + \${jacoco.version} + + + pre-unit-test + + prepare-agent + + + + \${project.build.directory}/code-coverage/jacoco-ut.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + + \${project.build.directory}/code-coverage/jacoco-ut.exec + + \${project.reporting.outputDirectory}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + \${project.build.directory}/code-coverage/jacoco-it.exec + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + \${project.build.directory}/code-coverage/jacoco-it.exec + + \${project.reporting.outputDirectory}/jacoco-it + + + + default-prepare-agent + + prepare-agent + + + + default-report + prepare-package + + report + + + + default-check + + check + + + + + PACKAGE + + + COMPLEXITY + COVEREDRATIO + 0.0 + + + + + + + org.apache.maven.plugins @@ -759,6 +782,19 @@ -Xdoclint:none + + org.jacoco + jacoco-maven-plugin + \${jacoco.version} + + + + + report + + + + -- cgit 1.2.3-korg