From 2a4ae3a1454b77bd6725827f4ece1f27e9e9e244 Mon Sep 17 00:00:00 2001
From: Andreas Beeker
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 @@