Adding maven cache instead of using the setup-java job

This commit is contained in:
2025-05-28 16:44:00 -04:00
parent 00124cddf2
commit f28badf949
+7 -2
View File
@@ -11,14 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'zulu'
cache: 'maven'
cache-dependency-path: '**/pom.xml' # Add this line
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with: