Skip to content

Commit 03afe16

Browse files
committed
use 21 for Github CI
1 parent 94fd680 commit 03afe16

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
1818
with:
19-
java-version: 1.8
19+
distribution: 'temurin' # See 'Supported distributions' for available options
20+
java-version: '21'
2021
- name: Set up MySQL
2122
uses: shogo82148/actions-setup-mysql@v1
2223
with:

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- name: Check out code
2222
uses: actions/checkout@v4
2323

24-
- name: Set up JDK 1.8
24+
- name: Set up JDK 21
2525
uses: actions/setup-java@v4
2626
with:
27-
java-version: 8
27+
java-version: 21
2828
distribution: "temurin"
2929

3030
- name: Determine the version
@@ -43,21 +43,21 @@ jobs:
4343
exit 1
4444
if: github.event_name != 'workflow_dispatch' && steps.versioncheck.outputs.version != github.ref_name
4545

46-
- name: Set up JDK 1.8 for snapshots
46+
- name: Set up JDK 21 for snapshots
4747
uses: actions/setup-java@v4
4848
with:
49-
java-version: 8
49+
java-version: 21
5050
distribution: "temurin"
5151
cache: "maven"
5252
server-id: openconext-snapshots
5353
server-username: MAVEN_USERNAME
5454
server-password: MAVEN_PASSWORD
5555
if: ( endsWith(steps.versioncheck.outputs.version, '-SNAPSHOT'))
5656

57-
- name: Set up JDK 1.8
57+
- name: Set up JDK 21
5858
uses: actions/setup-java@v4
5959
with:
60-
java-version: 8
60+
java-version: 21
6161
distribution: "temurin"
6262
cache: "maven"
6363
server-id: openconext-releases

0 commit comments

Comments
 (0)