You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/06/29 13:03:38 UTC

[commons-geometry] branch master updated: Use GitHub Actions setup-java Maven cache property

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git


The following commit(s) were added to refs/heads/master by this push:
     new a1a597d5 Use GitHub Actions setup-java Maven cache property
a1a597d5 is described below

commit a1a597d5adddc9e8e71a9b7557a067aebd756871
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Wed Jun 29 14:00:21 2022 +0100

    Use GitHub Actions setup-java Maven cache property
---
 .github/workflows/coverage.yml | 7 +------
 .github/workflows/maven.yml    | 7 +------
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 3fa835da..465c9140 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -30,17 +30,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/cache@v3
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
       uses: actions/setup-java@v3
       with:
         distribution: adopt
         java-version: ${{ matrix.java }}
+        cache: 'maven'
     - name: Build with Maven
       run: mvn -V test jacoco:report --no-transfer-progress
 
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 92c35b08..86f0ed9e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -30,17 +30,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/cache@v3
-      with:
-        path: ~/.m2/repository
-        key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-        restore-keys: |
-          ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
       uses: actions/setup-java@v3
       with:
         distribution: adopt
         java-version: ${{ matrix.java }}
+        cache: 'maven'
     - name: Build with Maven including examples
       # Use the default goal
       run: mvn -V --no-transfer-progress -P commons-geometry-examples