Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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