From f28badf9499dfa49a4be003d27538d0a582bc069 Mon Sep 17 00:00:00 2001 From: Dawson Date: Wed, 28 May 2025 16:44:00 -0400 Subject: [PATCH] Adding maven cache instead of using the setup-java job --- .github/workflows/maven.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ad0d183..073bbfa 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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: