Skip to content

Commit f215c47

Browse files
authored
Update maven.yml
1 parent 5c6519e commit f215c47

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/maven.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,22 @@ jobs:
2525
strategy:
2626
matrix:
2727
os: [ubuntu-latest]
28-
java: [8, 11, 17-ea]
28+
java: [8, 11, 17]
2929
jdk: [temurin]
3030
fail-fast: false
3131

3232
runs-on: ${{ matrix.os }}
3333

3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v2.4.0
37-
38-
- name: Set up cache for ~./m2/repository
39-
uses: actions/cache@v2.1.7
40-
with:
41-
path: ~/.m2/repository
42-
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
43-
restore-keys: |
44-
maven-${{ matrix.os }}-java${{ matrix.java }}-
45-
maven-${{ matrix.os }}-
36+
uses: actions/checkout@v2
4637

4738
- name: Set up JDK
48-
uses: actions/setup-java@v2.5.0
39+
uses: actions/setup-java@v2
4940
with:
5041
java-version: ${{ matrix.java }}
5142
distribution: ${{ matrix.jdk }}
43+
cache: 'maven'
5244

5345
- name: Build with Maven
5446
run: mvn install -e -B -V

0 commit comments

Comments
 (0)