Use `oracle-actions/setup-java` for cross-version workflow
@@ -9,15 +9,15 @@ jobs:
strategy:
fail-fast: false
matrix:
- java: [18, 19-ea]
+ java: [18, 19, 20]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java
- uses: actions/setup-java@v3
+ uses: oracle-actions/setup-java@v1
with:
- distribution: 'zulu'
- java-version: ${{ matrix.java }}
-# cache: 'maven'
+ website: jdk.java.net
+ release: ${{ matrix.java }}
+ version: latest
- name: Test
run: ./mvnw -V --no-transfer-progress -e verify javadoc:javadoc
