Skip to content

Commit 06bf016

Browse files
committed
Use supported versions
1 parent d4de892 commit 06bf016

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/workflow.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up JDK 8
1616
uses: actions/setup-java@v4
1717
with:
18-
distribution: 'oracle'
18+
distribution: 'temurin'
1919
java-version: '8'
2020
cache: 'maven'
2121
- name: Build
@@ -35,7 +35,7 @@ jobs:
3535
- name: Set up JDK 21
3636
uses: actions/setup-java@v4
3737
with:
38-
distribution: 'oracle'
38+
distribution: 'temurin'
3939
java-version: '21'
4040
cache: 'maven'
4141
# Set up Android
@@ -49,15 +49,15 @@ jobs:
4949
strategy:
5050
matrix:
5151
# test against each major Java version
52-
java: [ 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ]
52+
java: [ 11, 15, 16, 17, 21, 23 ]
5353
steps:
5454
# Checks-out the repository under $GITHUB_WORKSPACE
5555
- uses: actions/checkout@v4
5656
# Set up Java version
5757
- name: Set up JDK ${{ matrix.java }}
5858
uses: actions/setup-java@v4
5959
with:
60-
distribution: 'oracle'
60+
distribution: 'temurin'
6161
java-version: ${{ matrix.java }}
6262
cache: 'maven'
6363
- name: Build
@@ -67,11 +67,11 @@ jobs:
6767
runs-on: ubuntu-20.04
6868
steps:
6969
- uses: actions/checkout@v4
70-
# Set up Adopt OpenJDK Hotspot 16
71-
- name: Set up OpenJDK 16
70+
# Set up Temurin 21
71+
- name: Set up OpenJDK 21
7272
uses: actions/setup-java@v4
7373
with:
74-
distribution: 'oracle'
74+
distribution: 'temurin'
7575
java-version: 21
7676
cache: 'maven'
7777
# Maven install with JVM locale = de_DE
@@ -87,7 +87,7 @@ jobs:
8787
- name: Set up JDK 8
8888
uses: actions/setup-java@v4
8989
with:
90-
distribution: 'oracle'
90+
distribution: 'temurin'
9191
java-version: '8'
9292
cache: 'maven'
9393
- name: Build
@@ -102,7 +102,7 @@ jobs:
102102
- name: Set up JDK 8
103103
uses: actions/setup-java@v4
104104
with:
105-
distribution: 'oracle'
105+
distribution: 'temurin'
106106
java-version: '8'
107107
cache: 'maven' # setup-java v4 includes maven caching
108108
- name: Build
@@ -116,7 +116,7 @@ jobs:
116116
- name: Set up JDK 8
117117
uses: actions/setup-java@v4
118118
with:
119-
distribution: 'oracle'
119+
distribution: 'temurin'
120120
java-version: '8'
121121
cache: 'maven'
122122
- name: Build

0 commit comments

Comments
 (0)