Skip to content

Commit ab29b5e

Browse files
committed
[actions] Cache entire m2 directory
includes maven wrapper
1 parent 3d14f4c commit ab29b5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
with:
3838
java-version: ${{ matrix.java }}
3939
distribution: ${{ matrix.distribution }}
40-
- name: Cache local Maven repository
40+
- name: Cache local Maven m2
4141
uses: actions/cache@v2
4242
with:
43-
path: ~/.m2/repository
44-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
43+
path: ~/.m2
44+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4545
restore-keys: |
46-
${{ runner.os }}-maven-
46+
${{ runner.os }}-m2
4747
- name: Set argLine command line option
4848
if: ${{ matrix.java != '8' }}
4949
run: echo 'ARG_LINE=-D"argLine=--illegal-access=permit"' >> $GITHUB_ENV

0 commit comments

Comments
 (0)