Skip to content

Commit 76a4bbe

Browse files
committed
Update java version for workflows to 21
1 parent f52986b commit 76a4bbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [ 17 ]
10+
java: [ 21 ]
1111
name: Java ${{ matrix.java }} compile
1212
steps:
1313
- uses: actions/checkout@master
@@ -29,11 +29,11 @@ jobs:
2929
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3030
restore-keys: |
3131
${{ runner.os }}-maven-
32-
- name: Set up JDK 17
32+
- name: Set up JDK 21
3333
uses: actions/setup-java@v2
3434
with:
3535
distribution: 'adopt'
36-
java-version: 17
36+
java-version: 21
3737
- name: Build and test project
3838
run: mvn clean verify
3939
- name: Upload Maven build artifact

.github/workflows/pullrequest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [ 17 ]
10+
java: [ 21 ]
1111
name: Java ${{ matrix.java }} compile
1212
steps:
1313
- uses: actions/checkout@master
@@ -29,10 +29,10 @@ jobs:
2929
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3030
restore-keys: |
3131
${{ runner.os }}-maven-
32-
- name: Set up JDK 17
32+
- name: Set up JDK 21
3333
uses: actions/setup-java@v2
3434
with:
3535
distribution: 'adopt'
36-
java-version: 17
36+
java-version: 21
3737
- name: Build and test project
3838
run: mvn clean verify

0 commit comments

Comments
 (0)