Caching of maven dependencies during build
@@ -21,5 +21,12 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
+ - name: Cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml
