aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-03-13 13:20:51 +0000
committerDominik Stadler <centic@apache.org>2017-03-13 13:20:51 +0000
commit808b63d33b0f063268bd1421c17654e5a1f8114f (patch)
tree1f0704243ed8a32a251290580450c0e82043aea2 /build.gradle
parentbd710dc5e7625f76c62df1d8c2066294287a36ca (diff)
downloadpoi-808b63d33b0f063268bd1421c17654e5a1f8114f.tar.gz
poi-808b63d33b0f063268bd1421c17654e5a1f8114f.zip
Gradle Build: Try with setting baseDir for Sonar-runs, but likely still does not work
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
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
1 files changed, 11 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index fbcd6c628d..4acabe0f1d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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') {