blob: caae7d78e762939dfc42dce967d4b07130ec85b2 (
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
52
53
54
55
56
57
58
59
60
|
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'org.xtext.xtend'
sourceCompatibility = '11'
targetCompatibility = '11'
sourceSets {
main {
xtendOutputDir = 'src/main/xtend-gen'
}
test {
xtendOutputDir = 'src/test/xtend-gen'
}
}
configurations.all {
exclude group: 'asm'
}
jar {
manifest {
attributes 'Bundle-SymbolicName': project.name
}
}
test {
useJUnitPlatform {
excludeTags 'slow'
}
}
task slowTest(type: Test) {
useJUnitPlatform()
}
clean.doLast {
delete 'src/main/xtend-gen'
delete 'src/test/xtend-gen'
}
apply plugin: 'eclipse'
eclipse {
classpath.file.whenMerged {
for (entry in entries) {
if (entry.path.endsWith('-gen')) {
entry.entryAttributes['ignore_optional_problems'] = true
}
}
}
jdt.file.whenMerged { properties ->
// Allow @SupperessWarnings to suppress SonarLint warnings
properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore'
}
}
|