This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 9da3f2c [SPARK-53701] Use Java 25 toolchain while supporting Java 17+
9da3f2c is described below
commit 9da3f2c31fcd7de5aa1f30cd4306605d9afc2b29
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Sep 24 13:11:52 2025 -0700
[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 #336 from dongjoon-hyun/SPARK-53701.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
build.gradle | 3 ++-
settings.gradle | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index bed9d7a..0d6e177 100644
--- a/build.gradle
+++ b/build.gradle
@@ -51,7 +51,8 @@ subprojects {
java {
toolchain {
- languageVersion = JavaLanguageVersion.of(17)
+ languageVersion = JavaLanguageVersion.of(25)
+ vendor = JvmVendorSpec.AZUL
}
}
diff --git a/settings.gradle b/settings.gradle
index bf5289f..893f1fd 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -16,6 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
+plugins {
+ id "org.gradle.toolchains.foojay-resolver-convention" version "1.0.0"
+}
rootProject.name = 'apache-spark-kubernetes-operator'
include 'spark-operator-api'
include 'spark-submission-worker'
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]