]> source.dussan.org Git - poi.git/commitdiff
Add comments for Sonar properties in the Gradle build
authorDominik Stadler <centic@apache.org>
Sun, 1 Nov 2020 09:21:29 +0000 (09:21 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 1 Nov 2020 09:21:29 +0000 (09:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1883036 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index d964dd23639de695a58282ee65abea0b49168706..97ee04ad47dcfee0ff2c22ca81556340aa214bde 100644 (file)
@@ -180,11 +180,18 @@ subprojects {
     projectDir.mkdirs()
 
     if (project.hasProperty('enableSonar')) {
+        // See https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-gradle/ and
+        // https://docs.sonarqube.org/display/SONARQUBE52/Analyzing+with+SonarQube+Scanner+for+Gradle
+        // for documentation of properties.
+        //
+        // Some additional properties are currently set in the Jenkins-DSL, see jenksin/create_jobs.groovy
+        //
         sonarqube {
             properties {
                 // as we currently use build/<module>/ as project-basedir, we need to tell Sonar to use
                 // the root-folder as "basedir" for the projects
                 property "sonar.projectBaseDir", "$projectDir/../.."
+                // currently supported providers on Jenkins: "hg,git": property "sonar.scm.provider", "svn"
 
                 // the plugin seems to not detect our non-standard build-layout
                 property "sonar.junit.reportPaths", "$projectDir/build/test-results/test"