Skip to main content
summaryrefslogtreecommitdiffstats
blob: 96b05ec5622c2e86e9dc513e574e36c675d86cc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
plugins {
	id 'org.xtext.xtend' version '2.0.4'
}

apply from: "$rootDir/gradle/scmVersion.gradle"
apply from: "$rootDir/gradle/versions.gradle"

/**
 * Requires property 'additionalPropertiesFile'
 */
def loadAdditionalPropertiesFile() {
	if(project.hasProperty('additionalPropertiesFile')) {
		def props = new Properties()
		file(additionalPropertiesFile).withInputStream {
			stream -> props.load(stream)
		}
		props.each { entry ->
			project.ext[entry.key] = entry.value
		}
		println "Loaded properties from ${additionalPropertiesFile}: ${props.keySet()}"
	}
}

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