Skip to content

Commit 9da3f2c

Browse files
committed
[SPARK-53701] Use Java 25 toolchain while supporting Java 17+
### What changes were proposed in this pull request? This PR aims to start to use `Java 25 (Azul Zulu JDK)` toolchain while supporting Java 17+ from `Apache K8s Operator v0.5`. ### Why are the changes needed? After this PR, we can take advantage of Java 25 compiler improvements while supporting all Java 17+ versions via `options.release = 17`. https://github.com/apache/spark-kubernetes-operator/blob/db7e6403fd14ab86c302532423e26d3799a6e4c8/build.gradle#L59 ### Does this PR introduce _any_ user-facing change? - There is no behavior change for users. - There is no developer experience change in general. - For the system without Java 25, `Gradle` will automatically download and use it. - Since we assume that `Gradle Wrapper` downloads `Gradle` itself, most of developers should get Java 25 without any issues. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#336 from dongjoon-hyun/SPARK-53701. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent db7e640 commit 9da3f2c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ subprojects {
5151

5252
java {
5353
toolchain {
54-
languageVersion = JavaLanguageVersion.of(17)
54+
languageVersion = JavaLanguageVersion.of(25)
55+
vendor = JvmVendorSpec.AZUL
5556
}
5657
}
5758

settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19+
plugins {
20+
id "org.gradle.toolchains.foojay-resolver-convention" version "1.0.0"
21+
}
1922
rootProject.name = 'apache-spark-kubernetes-operator'
2023
include 'spark-operator-api'
2124
include 'spark-submission-worker'

0 commit comments

Comments
 (0)