From 72f6a8b8e946cd8bed7bdd46bc7a20e49f32529a Mon Sep 17 00:00:00 2001 From: Brian Demers Date: Thu, 22 Jan 2026 16:25:18 -0500 Subject: [PATCH 1/2] Add Maven extension to publish build scans to develocity.apache.org --- .github/workflows/pull-request-build.yaml | 8 +++- .gitignore | 1 + .mvn/develocity.xml | 47 +++++++++++++++++++++++ .mvn/extensions.xml | 34 ++++++++++++++++ 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 .mvn/develocity.xml create mode 100644 .mvn/extensions.xml diff --git a/.github/workflows/pull-request-build.yaml b/.github/workflows/pull-request-build.yaml index 58550ed3a7..d9a3e1418c 100644 --- a/.github/workflows/pull-request-build.yaml +++ b/.github/workflows/pull-request-build.yaml @@ -23,7 +23,9 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Apache Maven - run: mvn -U clean install -Djava.awt.headless=true -fae -B + run: mvn -U clean install -Djava.awt.headless=true -fae -B --no-transfer-progress + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }} env: MAVEN_OPTS: "-Xmx1024M" build-java-17: @@ -41,4 +43,6 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Apache Maven - run: mvn -U clean install -Djava.awt.headless=true -fae -B + run: mvn -U clean install -Djava.awt.headless=true -fae -B --no-transfer-progress + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DIRECTORY_DEVELOCITY_ACCESS_KEY }} diff --git a/.gitignore b/.gitignore index af9739083e..196dc3081f 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ out/ META-INF/ dependency-reduced-pom.xml sbom.json +.mvn/.develocity/develocity-workspace-id diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml new file mode 100644 index 0000000000..771f07a4ae --- /dev/null +++ b/.mvn/develocity.xml @@ -0,0 +1,47 @@ + + + + directory-server + + https://develocity.apache.org + + + #{isFalse(env['GITHUB_ACTIONS'])} + + authenticated + + + #{{'0.0.0.0'}} + + + + + #{isFalse(env['GITHUB_ACTIONS'])} + + + true + #{isTrue(env['GITHUB_ACTIONS']) and isTrue(env['DEVELOCITY_ACCESS_KEY'])} + + + diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000000..b0056b00d3 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,34 @@ + + + + + com.gradle + develocity-maven-extension + 2.3.1 + + + com.gradle + common-custom-user-data-maven-extension + 2.1.0 + + From e4f25b24191679c9195350960b2e6a13d209bfaf Mon Sep 17 00:00:00 2001 From: Brian Demers Date: Fri, 23 Jan 2026 17:01:34 -0500 Subject: [PATCH 2/2] Add GH action to add a summary/comment button pointing to develocity.apache.org --- .github/workflows/pull-request-build.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pull-request-build.yaml b/.github/workflows/pull-request-build.yaml index d9a3e1418c..6b950f0e4d 100644 --- a/.github/workflows/pull-request-build.yaml +++ b/.github/workflows/pull-request-build.yaml @@ -22,6 +22,8 @@ jobs: java-version: '8' distribution: 'temurin' cache: maven + - name: Setup Develocity + uses: gradle/develocity-actions/setup-maven@974e8dbcbda40db6828fc35f349c80a7c0e71529 # v2.1 - name: Build with Apache Maven run: mvn -U clean install -Djava.awt.headless=true -fae -B --no-transfer-progress env: @@ -42,6 +44,8 @@ jobs: java-version: '17' distribution: 'temurin' cache: maven + - name: Setup Develocity + uses: gradle/develocity-actions/setup-maven@974e8dbcbda40db6828fc35f349c80a7c0e71529 # v2.1 - name: Build with Apache Maven run: mvn -U clean install -Djava.awt.headless=true -fae -B --no-transfer-progress env: