From 84857960cb27fedb9e6a804ed75aec4be4a2819a Mon Sep 17 00:00:00 2001 From: Dominic Schabel Date: Sat, 18 Mar 2017 17:47:59 +0100 Subject: [PATCH] Adapt sonar properties (#458) * Fixed deprecated use of jacoco reportPath with SonarQube 6.2 (see https://jira.sonarsource.com/browse/SONARJAVA-1887) Signed-off-by: Dominic Schabel * Deep nested modules included into coverage reports as well Signed-off-by: Dominic Schabel --- extensions/pom.xml | 4 ++++ .../hawkbit-repository-jpa/pom.xml | 1 - hawkbit-repository/pom.xml | 4 ++++ pom.xml | 21 +++++++------------ sonarCircleCi.sh | 2 +- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/extensions/pom.xml b/extensions/pom.xml index 341ba6a9e..80f93caad 100644 --- a/extensions/pom.xml +++ b/extensions/pom.xml @@ -20,6 +20,10 @@ hawkBit :: Extensions Parent pom for hawkBit extensions + + ${project.basedir}/../../target/ + + hawkbit-extension-uaa hawkbit-extension-artifact-repository-mongo diff --git a/hawkbit-repository/hawkbit-repository-jpa/pom.xml b/hawkbit-repository/hawkbit-repository-jpa/pom.xml index 485d6783a..00001f600 100644 --- a/hawkbit-repository/hawkbit-repository-jpa/pom.xml +++ b/hawkbit-repository/hawkbit-repository-jpa/pom.xml @@ -19,7 +19,6 @@ hawkbit-repository-jpa hawkBit :: Repository JPA Implementation - com.ethlo.eclipselink.tools diff --git a/hawkbit-repository/pom.xml b/hawkbit-repository/pom.xml index 981f3225a..689dcd0a5 100644 --- a/hawkbit-repository/pom.xml +++ b/hawkbit-repository/pom.xml @@ -20,6 +20,10 @@ hawkBit :: Repository pom + + ${project.basedir}/../../target/ + + hawkbit-repository-jpa hawkbit-repository-api diff --git a/pom.xml b/pom.xml index 19b8b9c89..a74b46a98 100644 --- a/pom.xml +++ b/pom.xml @@ -165,16 +165,16 @@ eclipse/hawkbit https://www.eclipse.org/hawkbit https://circleci.com/gh/eclipse/hawkbit - 0.7.7.201606060606 + **/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** + **/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/**,**/examples/** + 0.7.9 ${project.basedir}/../target/ - jacoco-ut.exec - ${jacoco.outputDir}/${jacoco.out.ut.file} - jacoco-it.exec - ${jacoco.outputDir}/${jacoco.out.it.file} + ${jacoco.outputDir}/jacoco-ut.exec + ${jacoco.outputDir}/jacoco-it.exec + ${jacoco.reportPath},${jacoco.itReportPath} - @@ -259,7 +259,7 @@ prepare-agent - ${sonar.jacoco.reportPath} + ${jacoco.reportPath} jacoco.agent.ut.arg true @@ -271,7 +271,7 @@ prepare-agent - ${sonar.jacoco.itReportPath} + ${jacoco.itReportPath} jacoco.agent.it.arg true @@ -294,11 +294,6 @@ - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.2 - org.eclipse.m2e lifecycle-mapping diff --git a/sonarCircleCi.sh b/sonarCircleCi.sh index 3429d0cfb..066bda912 100644 --- a/sonarCircleCi.sh +++ b/sonarCircleCi.sh @@ -11,7 +11,7 @@ echo $CI_PULL_REQUEST pull request # regular sonar on master if [ "$CIRCLE_BRANCH" = "master" ]; then - mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_TOKEN -Dsonar.exclusions=**/target/generated-sources/apt/**,**/src/test/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** -Dsonar.coverage.exclusions=**/src/main/java/org/eclipse/hawkbit/ui/**,**/target/generated-sources/apt/**,**/src/main/java/org/eclipse/hawkbit/repository/test/** + mvn verify license:check sonar:sonar -Dsonar.login=$SONAR_SERVER_TOKEN # preview in case of pull request - disabled as circle does not fill those with pull reuqests from different directories else #if [ -n "$CI_PULL_REQUEST" ]; then