Switch to actions/setup-java’s built-in caching
This commit is contained in:
parent
cd66a1ceb7
commit
6c6e6a4975
|
@ -13,12 +13,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache local Maven repository
|
cache: 'maven'
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -e -B verify
|
run: mvn -e -B verify
|
||||||
|
|
Loading…
Reference in New Issue