File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ import java.nio.file.Paths
66
77apply plugin : ' java-library'
88
9+ sourceCompatibility = JavaVersion . VERSION_1_8
10+ targetCompatibility = JavaVersion . VERSION_1_8
11+
12+ java {
13+ toolchain {
14+ languageVersion = JavaLanguageVersion . of(8 )
15+ }
16+ }
17+
918apply from : " $rootDir /gradle/codenarc.gradle"
1019apply from : " $rootDir /gradle/forbiddenapis.gradle"
1120apply from : " $rootDir /gradle/spotless.gradle"
@@ -38,15 +47,6 @@ if (applyCodeCoverage) {
3847 apply from : " $rootDir /gradle/jacoco.gradle"
3948}
4049
41- sourceCompatibility = JavaVersion . VERSION_1_8
42- targetCompatibility = JavaVersion . VERSION_1_8
43-
44- java {
45- toolchain {
46- languageVersion = JavaLanguageVersion . of(8 )
47- }
48- }
49-
5050// when building with Java 9+, lazily set compiler --release flag to match target
5151def skipSettingCompilerRelease = project. findProperty(' skipSettingCompilerRelease' )
5252if (! skipSettingCompilerRelease && JavaVersion . current(). isJava9Compatible()) {
You can’t perform that action at this time.
0 commit comments