From 2a4ae3a1454b77bd6725827f4ece1f27e9e9e244 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sun, 1 Dec 2019 11:42:09 +0000 Subject: [PATCH] Update Jacoco version and activate it again in the Sonar run git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1870671 13f79535-47bb-0310-9956-ffa450edef68 --- build.gradle | 2 +- build.xml | 6 ++++-- jenkins/create_jobs.groovy | 13 +++++++++---- sonar/pom.xml | 16 +++++++++++++++- 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index d9e9619e82..162048ab72 100644 --- a/build.gradle +++ b/build.gradle @@ -145,7 +145,7 @@ subprojects { } jacoco { - toolVersion = '0.8.3' + toolVersion = '0.8.5' } // ensure the build-dir exists diff --git a/build.xml b/build.xml index 1a6c761bfa..74878d4e53 100644 --- a/build.xml +++ b/build.xml @@ -260,8 +260,8 @@ under the License. value="${repository.m2}/maven2/org/javassist/javassist/3.21.0-GA/javassist-3.21.0-GA.jar"/> - - + + @@ -662,6 +662,7 @@ under the License. + @@ -669,6 +670,7 @@ under the License. + diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index a21eae3480..5ce9bf7e1c 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -128,8 +128,6 @@ def apicheckDesc = '''

''' -def sonarOptions = '-Dsonar.projectKey=poi-parent -Dsonar.organization=apache -Dsonar.host.url=https://sonarcloud.io ' - def sonarDesc = '''

Findbugs report of latest build - @@ -295,7 +293,11 @@ poijobs.each { poijob -> */ maven { if (poijob.sonar) { - goals('compile sonar:sonar -Dsonar.login=${POI_SONAR_TOKEN} ' + sonarOptions) + goals('clean package sonar:sonar') + property('sonar.host.url', 'https://sonarcloud.io') + property('sonar.login', '${POI_SONAR_TOKEN}') + property('sonar.projectKey', 'poi-parent') + property('sonar.organization', 'apache') } else { goals('package') } @@ -365,7 +367,10 @@ poijobs.each { poijob -> gradle { switches('-PenableSonar') - switches('-Dsonar.login=${POI_SONAR_TOKEN} ' + sonarOptions) + switches('-Dsonar.host.url=https://sonarcloud.io') + switches('-Dsonar.login=${POI_SONAR_TOKEN}') + switches('-Dsonar.projectKey=poi-parent') + switches('-Dsonar.organization=apache') tasks('sonarqube') useWrapper(false) } diff --git a/sonar/pom.xml b/sonar/pom.xml index 91e5062ec6..df104510c9 100644 --- a/sonar/pom.xml +++ b/sonar/pom.xml @@ -136,7 +136,21 @@ org.jacoco jacoco-maven-plugin - 0.8.2 + 0.8.5 + + + + prepare-agent + + + + report + prepare-package + + report + + + -- 2.39.5