Use built-in caching in setup-java action (#3130)

Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
Co-authored-by: Spencer Gibb <sgibb@pivotal.io>
This commit is contained in:
Jongwoo Han
2024-03-09 04:18:39 +09:00
committed by GitHub
parent 14ea1244b2
commit 82e8cb376c

View File

@@ -21,13 +21,7 @@ jobs:
with:
distribution: 'temurin'
java-version: '17'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
- name: Build with Maven
run: ./mvnw clean install -B -U -Pspring -Dmaven.test.redirectTestOutputToFile=true -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
- name: Publish Test Report