blob: a070c378af635f98c9adc29d89fd74f1f53e840d (
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
|
repositories {
mavenCentral()
maven {
url 'https://repo.eclipse.org/content/groups/releases/'
}
}
sourceCompatibility = '11'
targetCompatibility = '11'
tasks.named('jar') {
manifest {
attributes 'Bundle-SymbolicName': project.name
}
}
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'
}
}
|