Skip to content

Commit 5a49760

Browse files
committed
[SPARK-53670] Use Gradle Java Toolchain
1 parent bb46c2f commit 5a49760

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,13 @@ subprojects {
4949
apply plugin: 'java'
5050

5151
java {
52-
sourceCompatibility = 17
53-
targetCompatibility = 17
52+
toolchain {
53+
languageVersion = JavaLanguageVersion.of(17)
54+
}
55+
}
56+
57+
tasks.withType(JavaCompile).configureEach {
58+
options.release = 17
5459
}
5560

5661
repositories {

0 commit comments

Comments
 (0)