blob: 0cc09a4fab0d5dd513bf9357f98e642b3e9fd723 (
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
|
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
}
}
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 SonalLint warnings
properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore'
}
}
|