Skip to content

Commit 8873e49

Browse files
fix: enable Maven dependency caching in CI and release workflows (#106)
Adds cache: 'maven' to all actions/setup-java steps to cache ~/.m2/repository across runs, reducing build times and registry download noise.
1 parent b2e5149 commit 8873e49

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
java-version: ${{ matrix.java-version }}
3131
distribution: 'temurin'
32+
cache: 'maven'
3233

3334
- name: Configure Maven mirror
3435
run: |
@@ -109,6 +110,7 @@ jobs:
109110
with:
110111
java-version: '17'
111112
distribution: 'temurin'
113+
cache: 'maven'
112114

113115
- name: Configure Maven mirror
114116
run: |
@@ -157,6 +159,7 @@ jobs:
157159
with:
158160
java-version: '17'
159161
distribution: 'temurin'
162+
cache: 'maven'
160163

161164
- name: Configure Maven mirror
162165
run: |
@@ -192,6 +195,7 @@ jobs:
192195
with:
193196
java-version: '17'
194197
distribution: 'temurin'
198+
cache: 'maven'
195199

196200
- name: Configure Maven mirror
197201
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
with:
2525
java-version: '17'
2626
distribution: 'temurin'
27+
cache: 'maven'
2728
server-id: central
2829
server-username: MAVEN_USERNAME
2930
server-password: MAVEN_PASSWORD

0 commit comments

Comments
 (0)