]> source.dussan.org Git - poi.git/commitdiff
Gradle Build: Try with setting baseDir for Sonar-runs, but likely still does not...
authorDominik Stadler <centic@apache.org>
Mon, 13 Mar 2017 13:20:51 +0000 (13:20 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 13 Mar 2017 13:20:51 +0000 (13:20 +0000)
 Update wrapper to 3.4.1, although we do not store it yet anyway

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1786681 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index fbcd6c628de16b13753f835384dfcd9af0dfee25..4acabe0f1dea5aea037da8f47b4af641e758ed2f 100644 (file)
@@ -45,7 +45,7 @@ allprojects {
        apply plugin: 'eclipse'
 
        task wrapper(type: Wrapper) {
-           gradleVersion = '2.14.1'
+           gradleVersion = '3.4.1'
        }
        
        task adjustWrapperPropertiesFile {
@@ -129,6 +129,16 @@ subprojects {
     
     // ensure the build-dir exists
     projectDir.mkdirs()
+
+       if (project.hasProperty('enableSonar')) {
+               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/../.."
+                       }
+               }
+       }
 }
 
 project('main') {