Skip to content

Commit ba30b65

Browse files
authored
Update main.yml
1 parent e373d84 commit ba30b65

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ jobs:
3131
with:
3232
java-version: '17'
3333
distribution: 'temurin'
34-
cache: 'gradle'
35-
cache-dependency-path: |
36-
**/*.gradle*
37-
**/**/gradle-wrapper.properties
38-
- name: Set up Gradle (caches wrapper & deps)
39-
uses: gradle/actions/setup-gradle@v3
34+
- name: Cache Dependencies
35+
uses: actions/cache@v4
36+
with:
37+
# Avoid caching the generated artifacts
38+
path: |
39+
~/.m2/repository/*
40+
!~/.m2/repository/com/formkiq
41+
key: "${{ matrix.runtime }}-maven-${{ hashFiles('**/pom.xml') }}"
4042
- name: Build Project
4143
run: ./gradlew build --no-daemon
4244
- name: Upload test reports

0 commit comments

Comments
 (0)