(chores) support Java 17 in the Maven Plugins IT job
@@ -30,19 +30,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ '11', '14' ]
+ java: [ '11', '17' ]
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
- uses: AdoptOpenJDK/install-jdk@v1
+ uses: actions/setup-java@v3
with:
- version: ${{ matrix.java }}
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: ${{ runner.os }}-m2
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
+ cache: 'maven'
- name: Build model
run: |
./mvnw ${MAVEN_ARGS} \
