You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2022/06/28 20:19:03 UTC
[commons-configuration] branch master updated: Use GitHub Actions setup-java Maven cache property
This is an automated email from the ASF dual-hosted git repository.
kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
The following commit(s) were added to refs/heads/master by this push:
new 1b97e364 Use GitHub Actions setup-java Maven cache property
new 01a360d0 Merge branch 'pr-190'
1b97e364 is described below
commit 1b97e364871012f0b064b4881a2848f42e68caa9
Author: Sean Sullivan <se...@netflix.com>
AuthorDate: Tue Jun 28 10:24:32 2022 -0700
Use GitHub Actions setup-java Maven cache property
---
.github/workflows/coverage.yml | 7 +------
.github/workflows/maven.yml | 9 ++-------
src/changes/changes.xml | 3 +++
3 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 68d62f6f..00b779df 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.0.4
- 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 --file pom.xml --no-transfer-progress
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8dad9000..7344dafb 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -32,18 +32,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- - uses: actions/cache@v3.0.4
- 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: 'temurin'
java-version: ${{ matrix.java }}
+ cache: 'maven'
- name: Build with Maven
run: mvn -V -Ddoclint=none --file pom.xml --no-transfer-progress
-# For Java 11, you can be more strict: -DadditionalJOption=-Xdoclint/package:-org.apache.commons.configuration2.plist
\ No newline at end of file
+# For Java 11, you can be more strict: -DadditionalJOption=-Xdoclint/package:-org.apache.commons.configuration2.plist
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 822c4b3a..ab671cb9 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -211,6 +211,9 @@
<action type="update" dev="kinow" due-to="Dependabot">
Bump mailapi from 1.6.6 to 2.0.1 #186.
</action>
+ <action type="update" dev="kinow" due-to="sullis">
+ Use GitHub Actions setup-java Maven cache property #190.
+ </action>
</release>
<release version="2.7" date="2020-03-07"
description="Minor release with new features and updated dependencies.">