Skip to content

Commit 83c121f

Browse files
authored
Enhanced GitHub workflows and included Java 21
1 parent 21bb5a0 commit 83c121f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
java: [11, 17, 19, 20]
16+
java: [11, 17, 19, 20, 21]
1717

1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Set up JDK ${{ matrix.java }}
2121
uses: actions/setup-java@v3
2222
with:
23-
distribution: 'temurin'
23+
distribution: 'corretto'
2424
java-version: ${{ matrix.java }}
2525
cache: 'maven'
2626
- name: Build with Maven
@@ -36,14 +36,14 @@ jobs:
3636
runs-on: windows-latest
3737
strategy:
3838
matrix:
39-
java: [11, 17, 19, 20]
39+
java: [11, 17, 19, 20, 21]
4040

4141
steps:
4242
- uses: actions/checkout@v3
4343
- name: Set up JDK ${{ matrix.java }}
4444
uses: actions/setup-java@v3
4545
with:
46-
distribution: 'temurin'
46+
distribution: 'corretto'
4747
java-version: ${{ matrix.java }}
4848
cache: 'maven'
4949
- name: Build with Maven
@@ -54,14 +54,14 @@ jobs:
5454
runs-on: macOS-latest
5555
strategy:
5656
matrix:
57-
java: [11, 17, 19, 20]
57+
java: [11, 17, 19, 20, 21]
5858

5959
steps:
6060
- uses: actions/checkout@v3
6161
- name: Set up JDK ${{ matrix.java }}
6262
uses: actions/setup-java@v3
6363
with:
64-
distribution: 'temurin'
64+
distribution: 'corretto'
6565
java-version: ${{ matrix.java }}
6666
cache: 'maven'
6767
- name: Build with Maven
@@ -77,7 +77,7 @@ jobs:
7777
- name: Set up JDK 17
7878
uses: actions/setup-java@v3
7979
with:
80-
distribution: 'temurin'
80+
distribution: 'corretto'
8181
java-version: 17
8282
cache: 'maven'
8383
- name: Cache SonarCloud packages

0 commit comments

Comments
 (0)