Skip to content

Commit 2945171

Browse files
committed
DRY java version numbers
1 parent dd70e02 commit 2945171

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/java.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
java:
17+
# when you edit this be sure to edit "release" job's too
1718
- '17' # EOL: 2026-09
1819
- '21' # EOL: 2028-09
1920
#- '22' # REL: 2024-03
@@ -53,6 +54,10 @@ jobs:
5354
packages: write
5455
needs: [ build ]
5556
runs-on: macos-latest
57+
strategy:
58+
matrix:
59+
java:
60+
- '17' # see above for versions
5661
steps:
5762
- uses: actions/checkout@v4
5863
with:
@@ -68,7 +73,7 @@ jobs:
6873
- name: Set up JDK
6974
uses: actions/setup-java@v4
7075
with:
71-
java-version: '17'
76+
java-version: ${{ matrix.java }}
7277
distribution: 'temurin'
7378
cache: maven
7479
check-latest: true
@@ -87,7 +92,7 @@ jobs:
8792
- name: Set up JDK ${{ matrix.java }}
8893
uses: actions/setup-java@v4
8994
with:
90-
java-version: '17'
95+
java-version: ${{ matrix.java }}
9196
distribution: 'temurin'
9297
cache: maven
9398
check-latest: true

0 commit comments

Comments
 (0)