Skip to content

Commit bd42ff4

Browse files
authored
Switch caching to setup-java (#256)
1 parent fa6e041 commit bd42ff4

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/maven.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,11 @@ jobs:
2121
- uses: actions/checkout@v3
2222

2323
- name: Set up JDK ${{ matrix.java }}
24-
uses: actions/setup-java@v2
24+
uses: actions/setup-java@v3
2525
with:
26-
distribution: 'adopt'
26+
distribution: 'temurin'
2727
java-version: ${{ matrix.java }}
28-
29-
- name: Cache dependencies
30-
uses: actions/[email protected]
31-
with:
32-
path: ~/.m2/repository
33-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34-
restore-keys: |
35-
${{ runner.os }}-maven
28+
cache: 'maven'
3629

3730
- name: Build with Maven
3831
run: mvn -Penable-jacoco clean verify -B -V -ntp

0 commit comments

Comments
 (0)