File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,15 @@ import org.gradle.jvm.toolchain.internal.SpecificInstallationToolchainSpec
22
33apply plugin : ' java-library'
44
5+ sourceCompatibility = JavaVersion . VERSION_1_8
6+ targetCompatibility = JavaVersion . VERSION_1_8
7+
8+ java {
9+ toolchain {
10+ languageVersion = JavaLanguageVersion . of(8 )
11+ }
12+ }
13+
514apply from : " $rootDir /gradle/codenarc.gradle"
615apply from : " $rootDir /gradle/forbiddenapis.gradle"
716apply from : " $rootDir /gradle/spotless.gradle"
@@ -34,15 +43,6 @@ if (applyCodeCoverage) {
3443 apply from : " $rootDir /gradle/jacoco.gradle"
3544}
3645
37- sourceCompatibility = JavaVersion . VERSION_1_8
38- targetCompatibility = JavaVersion . VERSION_1_8
39-
40- java {
41- toolchain {
42- languageVersion = JavaLanguageVersion . of(8 )
43- }
44- }
45-
4646// when building with Java 9+, lazily set compiler --release flag to match target
4747def skipSettingCompilerRelease = project. findProperty(' skipSettingCompilerRelease' )
4848if (! skipSettingCompilerRelease && JavaVersion . current(). isJava9Compatible()) {
You can’t perform that action at this time.
0 commit comments