Skip to content

Commit

Permalink
use setup-java built-in cache mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaskali committed Jan 25, 2025
1 parent 05c82f1 commit 244d94f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
with:
distribution: temurin
java-version: 17
cache: maven

- name: Cache SonarCloud packages
uses: actions/cache@v4
Expand All @@ -40,14 +41,6 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand Down

0 comments on commit 244d94f

Please sign in to comment.