Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1d936e2d8ca592f51e5b6680746d130fdffc411c (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
39
40
41
42
43
44
45
46
47
48
49
50
51
plugins {
	id "org.xtext.xtend" apply false
}

def xtextProjects = [
	'org.eclipse.etrice.core.common',
	'org.eclipse.etrice.core.config',
	'org.eclipse.etrice.core.etmap',
	'org.eclipse.etrice.core.etphys',
	'org.eclipse.etrice.core.fsm',
	'org.eclipse.etrice.core.room'
].collect { project it }

subprojects {
	apply plugin: 'java-library'
	apply plugin: 'org.xtext.xtend'
	
	apply from: "$rootDir/gradle/publish.gradle"
	
	sourceSets {
		main {
			java {
				srcDir 'src'
			}
		}
	}
	
	tasks.withType(JavaCompile) {
		options.encoding = 'cp1252'
	}
	
	processResources {
		from('META-INF') {
			into 'META-INF'
		}
	}
}

configure(xtextProjects) {
	sourceSets {
		main {
			java {
				srcDir 'src-gen'
			}
			resources {
				srcDirs = ['src', 'src-gen', 'model']
				include '**/*.xtextbin', '**/*.tokens', '**/*.genmodel', '**/*.ecore'
			}
		}
	}
}

Back to the top