poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1786681 - /poi/trunk/build.gradle
Date Mon, 13 Mar 2017 13:20:51 GMT
Author: centic
Date: Mon Mar 13 13:20:51 2017
New Revision: 1786681

URL: http://svn.apache.org/viewvc?rev=1786681&view=rev
Log:
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

Modified:
    poi/trunk/build.gradle

Modified: poi/trunk/build.gradle
URL: http://svn.apache.org/viewvc/poi/trunk/build.gradle?rev=1786681&r1=1786680&r2=1786681&view=diff
==============================================================================
--- poi/trunk/build.gradle (original)
+++ poi/trunk/build.gradle Mon Mar 13 13:20:51 2017
@@ -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') {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message