You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bd...@apache.org on 2025/06/10 18:48:36 UTC
(directory-scimple) branch develop updated: Enable Develocity remote caching (#821)
This is an automated email from the ASF dual-hosted git repository.
bdemers pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git
The following commit(s) were added to refs/heads/develop by this push:
new fadf3a9a Enable Develocity remote caching (#821)
fadf3a9a is described below
commit fadf3a9a4c7a76a464ad007e42d5e83991cbdb40
Author: Clay Johnson <cj...@gradle.com>
AuthorDate: Tue Jun 10 13:48:32 2025 -0500
Enable Develocity remote caching (#821)
Enable Develocity remote caching
---
.github/workflows/build-reproducible.yml | 14 ++++++++++----
.github/workflows/build.yml | 2 +-
.github/workflows/codeql-analysis.yml | 5 ++++-
.github/workflows/maven.yml | 2 +-
.github/workflows/release.yml | 4 ++--
.github/workflows/snapshot.yml | 4 ++--
.mvn/develocity.xml | 3 ++-
7 files changed, 22 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/build-reproducible.yml b/.github/workflows/build-reproducible.yml
index e875340f..597bdc8f 100644
--- a/.github/workflows/build-reproducible.yml
+++ b/.github/workflows/build-reproducible.yml
@@ -50,14 +50,20 @@ jobs:
cache: '' # disabled
- name: Running Maven
- run: ./mvnw install
+ run: |
+ ./mvnw install \
+ -Ddevelocity.cache.local.enabled=false \
+ -Ddevelocity.cache.remote.enabled=false
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
- name: Running Maven again to check reproducibility
- run: ./mvnw clean verify artifact:compare
+ run: |
+ ./mvnw clean verify artifact:compare \
+ -Ddevelocity.cache.local.enabled=false \
+ -Ddevelocity.cache.remote.enabled=false
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
- name: Upload Build Info
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 #v4.6.2
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 089d9cb1..68e837ef 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,7 +30,7 @@ jobs:
uses: ./.github/workflows/maven.yml
with:
- mvn: verify -Pci
+ mvn: clean verify -Pci
name: "Maven Verify (with Java ${{ matrix.java }}-zulu)"
jobs_path: "build (${{ matrix.java }}) / maven"
java-version: ${{ matrix.java }}
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 73fa44dc..31bd65dd 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -62,7 +62,10 @@ jobs:
languages: ${{ matrix.language }}
- name: Maven Build
- run: ./mvnw verify pmd:aggregate-pmd -Pci
+ run: |
+ ./mvnw verify pmd:aggregate-pmd -Pci \
+ -Ddevelocity.cache.local.enabled=false \
+ -Ddevelocity.cache.remote.enabled=false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f #v3.28.18
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index a4e0990c..12c15ab1 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -57,7 +57,7 @@ jobs:
id: mvnBuild
run: ./mvnw ${{ inputs.mvn }}
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
- name: Add PR Comment
if: github.event.pull_request.number != ''
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3504175c..b0f0a6f2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -64,7 +64,7 @@ jobs:
echo "project-version=$PROJECT_VERSION"
echo "project-version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
- name: Maven Release Build
id: mvn
@@ -79,7 +79,7 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Capture Nexus Staging URL
diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml
index 7b0f7fe8..e15784c9 100644
--- a/.github/workflows/snapshot.yml
+++ b/.github/workflows/snapshot.yml
@@ -62,7 +62,7 @@ jobs:
echo "project-version=$PROJECT_VERSION"
echo "project-version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
- name: Maven Snapshot Build
id: mvn
@@ -77,7 +77,7 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
- DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Success Summary
diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml
index 4ceacb8f..f14a6e45 100644
--- a/.mvn/develocity.xml
+++ b/.mvn/develocity.xml
@@ -40,7 +40,8 @@
<enabled>#{isFalse(env['GITHUB_ACTIONS'])}</enabled>
</local>
<remote>
- <enabled>false</enabled>
+ <enabled>true</enabled>
+ <storeEnabled>#{isTrue(env['GITHUB_ACTIONS'])}</storeEnabled>
</remote>
</buildCache>
</develocity>