Skip to content

Commit 71193e8

Browse files
committed
Use Gradle toolchain for JDK
1 parent 785fbf9 commit 71193e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ tasks.publishPlugin {
133133
}
134134

135135
java {
136-
sourceCompatibility = JavaVersion.VERSION_1_8
137-
targetCompatibility = JavaVersion.VERSION_1_8
136+
toolchain {
137+
languageVersion.set(JavaLanguageVersion.of(11))
138+
}
138139
}
139140

140141
tasks.withType<JavaCompile>().configureEach {
141142
options.encoding = "UTF-8"
142143
options.compilerArgs = listOf("-proc:none")
144+
options.release.set(8)
143145
}
144146

145147
tasks.withType<KotlinCompile>().configureEach {

0 commit comments

Comments
 (0)