aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/java-common.gradle
blob: 8f37e4755a1bdfe5bd61d8d499becd00b249d58f (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
repositories {
	mavenCentral()
}

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