Add Maven dependencies cache to GitHub Actions workflow
@@ -17,5 +17,12 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
+ - name: Cache local Maven repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Build with Maven
run: ./mvnw -B package
