Skip to content

Commit

Permalink
#25951 Maven cache configuration updated. POM properties improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina committed Oct 9, 2023
1 parent d41700e commit 771e0ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/cli-release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRO }}

- name: Cache Maven
- name: Get Date
id: get-date
run: |
echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT
shell: bash

- name: Restore Maven Repository
id: cache-maven
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
key: mavencore-${{ steps.get-date.outputs.date }}-${{ github.run_id }}

- name: Setup git config
run: |
Expand Down
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@
Is only needed during compilation and no runtime component required -->
<groupId>org.immutables</groupId>
<artifactId>value</artifactId>
<version>2.9.0</version>
<version>${immutables.version}</version>
</dependency>

<!--
Expand Down
2 changes: 2 additions & 0 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
<argLine/>
<skipTests>false</skipTests>
<skip.surefire.tests>${skipTests}</skip.surefire.tests>

<immutables.version>2.9.0</immutables.version>
</properties>

<build>
Expand Down
1 change: 0 additions & 1 deletion tools/dotcms-cli/api-data-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<testcontainers.version>1.17.6</testcontainers.version>
<test.failure.ignore>false</test.failure.ignore>
<maven.plugin.jar.version>3.3.0</maven.plugin.jar.version>
<immutables.version>2.8.2</immutables.version>
<google.findbugs.version>3.0.2</google.findbugs.version>
<jackson.module.model.version>1.2.2</jackson.module.model.version>
<jackson.datatype.guava.version>2.13.3</jackson.datatype.guava.version>
Expand Down

0 comments on commit 771e0ee

Please sign in to comment.