From e24be61e32221520068563ec02276b17b3da76f9 Mon Sep 17 00:00:00 2001 From: Saurabh Jain Date: Thu, 5 Mar 2026 11:17:08 +0530 Subject: [PATCH] fix: enable Maven dependency caching in CI and release workflows Adds cache: 'maven' to all actions/setup-java steps to cache ~/.m2/repository across runs, reducing build times and registry download noise. --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eca7c76..f1e7aca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,7 @@ jobs: with: java-version: ${{ matrix.java-version }} distribution: 'temurin' + cache: 'maven' - name: Configure Maven mirror run: | @@ -109,6 +110,7 @@ jobs: with: java-version: '17' distribution: 'temurin' + cache: 'maven' - name: Configure Maven mirror run: | @@ -157,6 +159,7 @@ jobs: with: java-version: '17' distribution: 'temurin' + cache: 'maven' - name: Configure Maven mirror run: | @@ -192,6 +195,7 @@ jobs: with: java-version: '17' distribution: 'temurin' + cache: 'maven' - name: Configure Maven mirror run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49874df..744e4a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,7 @@ jobs: with: java-version: '17' distribution: 'temurin' + cache: 'maven' server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD