Skip to content

Commit 4db23a8

Browse files
committed
Enable maven caching for all setup-java uses
This relates to the wrapper caching improvements for `mvnw` as described in #9493. All active setup-java uses now include `cache: 'maven'`.
1 parent 8709505 commit 4db23a8

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/dist-verification-ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ jobs:
142142
with:
143143
distribution: 'temurin'
144144
java-version: ${{ matrix.java-version }}
145+
cache: 'maven'
145146
- name: download cached dist bin
146147
uses: actions/download-artifact@v8
147148
with:
@@ -177,6 +178,7 @@ jobs:
177178
with:
178179
distribution: 'temurin'
179180
java-version: ${{ matrix.java-version }}
181+
cache: 'maven'
180182
- name: download cached dist src
181183
uses: actions/download-artifact@v8
182184
with:
@@ -209,6 +211,7 @@ jobs:
209211
with:
210212
distribution: 'temurin'
211213
java-version: ${{ matrix.java-version }}
214+
cache: 'maven'
212215
- name: download cached jruby-complete
213216
uses: actions/download-artifact@v8
214217
with:
@@ -236,6 +239,7 @@ jobs:
236239
with:
237240
distribution: 'temurin'
238241
java-version: ${{ matrix.java-version }}
242+
cache: 'maven'
239243
- name: download cached dist bin
240244
uses: actions/download-artifact@v8
241245
with:
@@ -274,6 +278,7 @@ jobs:
274278
architecture: x64
275279
distribution: 'temurin'
276280
java-version: ${{ matrix.java-version }}
281+
cache: 'maven'
277282
- name: download cached installer x64
278283
uses: actions/download-artifact@v8
279284
with:

‎.github/workflows/snapshot-publish.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
server-id: central
3333
server-username: MAVEN_USERNAME
3434
server-password: MAVEN_PASSWORD
35+
cache: 'maven'
3536
- name: Publish package
3637
run: ./mvnw -ntp clean deploy -Psnapshots
3738
env:

0 commit comments

Comments
 (0)