aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/java-common.gradle
blob: ee7bfad82eb169abec4d58a0035d68d1f0f9c7f9 (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
repositories {
	mavenCentral()
	maven {
		url 'https://repo.eclipse.org/content/groups/releases/'
	}
}

apply plugin: 'java'

sourceCompatibility = '11'
targetCompatibility = '11'

configurations.all {
	exclude group: 'asm'
}

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'
	}
}