blob: a555ec3bf3799b38aca3d42cd803c9102634652a (
plain)
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
|
plugins {
id "java"
id "eclipse"
}
compileJava {
if (JavaVersion.current() < JavaVersion.VERSION_1_9) {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(9)
}
}
sourceCompatibility = 9
targetCompatibility = 9
}
configurations {
apiElements {
attributes {
attribute TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8
}
}
runtimeElements {
attributes {
attribute TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8
}
}
}
|