Skip to content

Commit

Permalink
chore: use latest Java LTS version (21) in CI tests
Browse files Browse the repository at this point in the history
- update the setup-java action to v4
- add Java 21 to the Java version matrix
- update the JDK distribution to Eclipse Temurin (formerly AdoptOpenJDK)
  • Loading branch information
rdeltour committed Dec 8, 2023
1 parent d895f66 commit 183a3a6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ jobs:
name: "Build on Java ${{ matrix.java }}"
strategy:
matrix:
java: [8, 11, 16]
java: [8, 11, 17, 21]
runs-on: ubuntu-latest
steps:
- name: "Checkout sources"
uses: actions/checkout@v2
- name: "Set up Java"
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: "adopt"
distribution: "temurin"
cache: 'maven'
- name: "Get Maven dependencies from cache"
uses: actions/cache@v2
with:
Expand All @@ -40,10 +41,10 @@ jobs:
- name: "Checkout sources"
uses: actions/checkout@v2
- name: "Setup Java"
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 11
distribution: "adopt"
java-version: 21
distribution: "temurin"
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
Expand Down

0 comments on commit 183a3a6

Please sign in to comment.