We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4038b0c commit efbc7f1Copy full SHA for efbc7f1
.github/workflows/maven.yml
@@ -34,9 +34,18 @@ jobs:
34
uses: actions/setup-java@v3
35
with:
36
java-version: ${{ matrix.java }}
37
- distribution: 'adopt'
+ distribution: 'temurin'
38
cache: maven
39
40
+ # Cache Maven dependencies (adjust cache key to optimize)
41
+ - name: Cache Maven dependencies
42
+ uses: actions/cache@v3
43
+ with:
44
+ path: ~/.m2/repository
45
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} # Cache dependencies based on pom.xml changes
46
+ restore-keys: |
47
+ ${{ runner.os }}-maven-
48
+
49
# Build the project (compiles and packages the code)
50
- name: Build the project
51
run: mvn -B -X -e clean package --file pom.xml --batch-mode --fail-fast
0 commit comments