Skip to content

Commit ae7c376

Browse files
committed
[SPARK-53826] Use Java 25 in GitHub Action jobs consistently
### What changes were proposed in this pull request? This PR aims to use Java 25 in `GitHub Action` jobs consistently. - https://github.com/apache/spark-kubernetes-operator/actions/workflows/build_and_test.yml - https://github.com/apache/spark-kubernetes-operator/actions/workflows/publish_snapshot_chart.yml ### Why are the changes needed? We had better use Java 25 by default because our tool chain is `Java 25`. - #336 **BEFORE** ``` $ git grep 'java-version: 17' | wc -l 3 $ git grep 'java-version: 21' | wc -l 1 ``` **AFTER** ``` $ git grep 'java-version: 17' | wc -l 0 $ git grep 'java-version: 21' | wc -l 0 ``` ### Does this PR introduce _any_ user-facing change? No behavior change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #374 from dongjoon-hyun/SPARK-53826. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 21bd61a commit ae7c376

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ jobs:
5555
steps:
5656
- name: Checkout repository
5757
uses: actions/checkout@v5
58-
- name: Set up JDK 17
58+
- name: Set up JDK 25
5959
uses: actions/setup-java@v4
6060
with:
61-
java-version: 17
61+
java-version: 25
6262
distribution: 'zulu'
6363
cache: 'gradle'
6464
- name: Build Operator Image
@@ -98,10 +98,10 @@ jobs:
9898
steps:
9999
- name: Checkout repository
100100
uses: actions/checkout@v5
101-
- name: Set up JDK 21
101+
- name: Set up JDK 25
102102
uses: actions/setup-java@v4
103103
with:
104-
java-version: 21
104+
java-version: 25
105105
distribution: 'zulu'
106106
cache: 'gradle'
107107
- name: Set up Minikube
@@ -163,10 +163,10 @@ jobs:
163163
DEFAULT_BRANCH: main
164164
VALIDATE_MARKDOWN: true
165165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166-
- name: Set up JDK 17
166+
- name: Set up JDK 25
167167
uses: actions/setup-java@v4
168168
with:
169-
java-version: 17
169+
java-version: 25
170170
distribution: 'zulu'
171171
cache: 'gradle'
172172
- name: Linters

.github/workflows/publish_snapshot_chart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
uses: actions/checkout@v5
2727
with:
2828
ref: ${{ matrix.branch }}
29-
- name: Set up JDK 17
29+
- name: Set up JDK 25
3030
uses: actions/setup-java@v4
3131
with:
32-
java-version: 17
32+
java-version: 25
3333
distribution: 'zulu'
3434
cache: 'gradle'
3535
- name: Build Operator

0 commit comments

Comments
 (0)