Cache the maven wrapper JAR for Maven builds (#16092)

Closes #16091
This commit is contained in:
Alexander Schwartz 2023-01-20 09:11:38 +01:00 committed by GitHub
parent 234267556d
commit bd30023d62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,3 +26,12 @@ runs:
ls ~/.m2/repository/org/keycloak ls ~/.m2/repository/org/keycloak
exit 1 exit 1
fi fi
- name: Cache Maven Wrapper
uses: actions/cache@v3
with:
path: .mvn/wrapper/maven-wrapper.jar
key: ${{ runner.os }}-maven-wrapper-${{ hashFiles('**/maven-wrapper.properties') }}
# use a previously cached JAR file as something else besides the version could have changed in the file
restore-keys: |
${{ runner.os }}-maven-wrapper-