switch to actions/setup-java@v3
@@ -20,15 +20,11 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Java ${{ matrix.java }}
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
+ distribution: 'temurin'
java-version: ${{ matrix.java }}
-
- - name: Fetch cached Maven dependencies
- uses: actions/cache@v3
- with:
- path: ~/.m2
- key: maven-deps
+ cache: 'maven'
- name: Compile project, run tests
run: |
@@ -43,15 +39,11 @@ jobs:
- uses: actions/checkout@v3
- name: Setup Java 11
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
+ distribution: 'temurin'
java-version: 11
-
- - name: Fetch cached Maven dependencies
- uses: actions/cache@v3
- with:
- path: ~/.m2
- key: maven-deps
+ cache: 'maven'
- name: Compile project
run: |
