Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2019-05-23 10:08:38 +0000
committerJuergen Haug2019-05-23 10:08:38 +0000
commitc336f282ebaa3c4d98b338ce912e8ff14a362398 (patch)
treeda14745d9791154efffa1f8e3201d601994551e7
parent012c80d53d57171fbc8444bf583d7fc712ef1b05 (diff)
downloadorg.eclipse.etrice-c336f282ebaa3c4d98b338ce912e8ff14a362398.tar.gz
org.eclipse.etrice-c336f282ebaa3c4d98b338ce912e8ff14a362398.tar.xz
org.eclipse.etrice-c336f282ebaa3c4d98b338ce912e8ff14a362398.zip
[releng] load additional properties for eclipse CI
-rw-r--r--build.gradle32
1 files changed, 17 insertions, 15 deletions
diff --git a/build.gradle b/build.gradle
index 1099b4a03..96b05ec56 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,24 +5,11 @@ plugins {
apply from: "$rootDir/gradle/scmVersion.gradle"
apply from: "$rootDir/gradle/versions.gradle"
-allprojects {
- apply plugin: 'base'
-
- group = 'org.eclipse.etrice'
- version = scmVersion.version
-
- repositories {
- maven {
- url 'https://repo.eclipse.org/content/repositories/maven_central/'
- }
- }
-}
-
/**
* Requires property 'additionalPropertiesFile'
*/
-task loadAdditionalPropertiesFile() {
- doFirst {
+def loadAdditionalPropertiesFile() {
+ if(project.hasProperty('additionalPropertiesFile')) {
def props = new Properties()
file(additionalPropertiesFile).withInputStream {
stream -> props.load(stream)
@@ -34,3 +21,18 @@ task loadAdditionalPropertiesFile() {
}
}
+loadAdditionalPropertiesFile()
+
+allprojects {
+ apply plugin: 'base'
+
+ group = 'org.eclipse.etrice'
+ version = scmVersion.version
+
+ repositories {
+ maven {
+ url 'https://repo.eclipse.org/content/repositories/maven_central/'
+ }
+ }
+}
+

Back to the top