Skip to content

Commit 14b9069

Browse files
committed
chore(62): use built-in Maven cache mechanism of setup-java GitHub
Action fixes #62 Signed-off-by: Aurélien Pupier <[email protected]>
1 parent e0e6ccb commit 14b9069

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/GITHUB_ACTIONS.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,22 +134,17 @@ jobs:
134134
with:
135135
fetch-depth: 0
136136
- name: Set up JDK 1.11
137-
uses: actions/setup-java@v2.3.0
137+
uses: actions/setup-java@v3.9.0
138138
with:
139139
distribution: 'zulu'
140140
java-version: '11'
141+
cache: 'maven'
141142
- name: Cache SonarCloud packages
142143
uses: actions/[email protected]
143144
with:
144145
path: ~/.sonar/cache
145146
key: ${{ runner.os }}-sonar
146147
restore-keys: ${{ runner.os }}-sonar
147-
- name: Cache Maven packages
148-
uses: actions/[email protected]
149-
with:
150-
path: ~/.m2
151-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
152-
restore-keys: ${{ runner.os }}-m2
153148
- name: Create custom Maven Settings.xml #(2)
154149
uses: whelk-io/maven-settings-xml-action@v18
155150
with:

0 commit comments

Comments
 (0)