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

sourceCompatibility = '17'
targetCompatibility = '17'

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.withProperties { properties ->
		// Allow @SupperessWarnings to suppress SonarLint warnings
		properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore'
	}
}