aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/xtext-common.gradle
blob: 4993ed7e9778ef21f2567293ba98380d8acc39b9 (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
apply from: "${rootDir}/gradle/java-common.gradle"

dependencies {
	implementation platform("org.eclipse.xtext:xtext-dev-bom:${xtextVersion}")
}

configurations.all {
	exclude group: 'asm'
}

sourceSets {
	main {
		java.srcDirs += ['src/main/xtext-gen']
		resources.srcDirs += ['src/main/xtext-gen']
	}
	test {
		java.srcDirs += ['src/test/xtext-gen']
		resources.srcDirs += ['src/test/xtext-gen']
	}
}

tasks.named('clean') {
	delete 'src/main/xtext-gen'
	delete 'src/test/xtext-gen'
}

sonarqube.properties {
	properties['sonar.exclusions'] += [
		'src/main/xtext-gen/**',
		'src/test/xtext-gen/**',
	]
}