From bf508afa17d4f97586ad4347bb2a7fac3f923e64 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 22:51:33 +0200 Subject: [PATCH 1/8] Added basic Develocity integration --- .mvn/develocity.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ .mvn/extensions.xml | 13 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .mvn/develocity.xml create mode 100644 .mvn/extensions.xml diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml new file mode 100644 index 000000000000..4a469f094a72 --- /dev/null +++ b/.mvn/develocity.xml @@ -0,0 +1,45 @@ + + + + + + + https://ge.apache.org + false + + + #{isFalse(env['GITHUB_ACTIONS'])} + + #{{'0.0.0.0'}} + + + + + + + + + + false + + + false + #{isTrue(env['GITHUB_ACTIONS'])} + + + \ No newline at end of file diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 000000000000..376697226377 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,13 @@ + + + + com.gradle + develocity-maven-extension + 1.21.4 + + + com.gradle + common-custom-user-data-maven-extension + 2.0 + + \ No newline at end of file From e94e4284bc05e7fdd71b699d505514897089df9d Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 22:55:05 +0200 Subject: [PATCH 2/8] Added develocity access key setup to github actions (maven) workflows --- .github/workflows/build.yml | 3 +++ .github/workflows/ci.yml | 3 +++ .github/workflows/codecov.yml | 3 +++ .github/workflows/linter.yml | 3 +++ .github/workflows/main-sonar-check.yml | 3 +++ .github/workflows/rat.yml | 3 +++ .github/workflows/sonar-check.yml | 3 +++ .github/workflows/ui.yml | 3 +++ 8 files changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c6c90a61837..566f4f1120be 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fac2d6266fa5..7b2840197499 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index a8f923d708d4..45a43249b4ee 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -26,6 +26,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 784df0cf03ca..b216f35ca823 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -26,6 +26,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: pre-commit: name: Run pre-commit diff --git a/.github/workflows/main-sonar-check.yml b/.github/workflows/main-sonar-check.yml index 66bb1093e040..3fd6d37e4e18 100644 --- a/.github/workflows/main-sonar-check.yml +++ b/.github/workflows/main-sonar-check.yml @@ -26,6 +26,9 @@ permissions: contents: read # to fetch code (actions/checkout) pull-requests: write # for sonar to comment on pull-request +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml index b8f83de81940..f4a7e32ff8cf 100644 --- a/.github/workflows/rat.yml +++ b/.github/workflows/rat.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 diff --git a/.github/workflows/sonar-check.yml b/.github/workflows/sonar-check.yml index 2ebcf1fb2db7..94ec6faadf5c 100644 --- a/.github/workflows/sonar-check.yml +++ b/.github/workflows/sonar-check.yml @@ -27,6 +27,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: if: github.repository == 'apache/cloudstack' && github.event.pull_request.head.repo.full_name == github.repository diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 476526aff32c..fd575abb2e10 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -26,6 +26,9 @@ concurrency: permissions: contents: read +env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + jobs: build: runs-on: ubuntu-22.04 From 2601328052467b8dc3ca1249293a9fb9b8dbfb38 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Mon, 3 Jun 2024 23:28:21 +0200 Subject: [PATCH 3/8] Cleanup --- .mvn/develocity.xml | 19 ++----------------- .mvn/extensions.xml | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index 4a469f094a72..207fab6bc22b 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -1,20 +1,5 @@ - - @@ -39,7 +24,7 @@ false - #{isTrue(env['GITHUB_ACTIONS'])} + #{isTrue(env['GITHUB_ACTIONS'])} - \ No newline at end of file + diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index 376697226377..ea686d82aaa2 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -10,4 +10,4 @@ common-custom-user-data-maven-extension 2.0 - \ No newline at end of file + From 217cd5d82f70d7feea54a36128745c6ac3d67e02 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Tue, 4 Jun 2024 16:15:12 +0200 Subject: [PATCH 4/8] Added licensing header to .mvn/extensions.xml --- .mvn/extensions.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index ea686d82aaa2..8f5335529d1d 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -1,4 +1,25 @@ + + com.gradle From 9c66ca41e8e5acdd72ac49d3798a4382347f75f8 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Tue, 4 Jun 2024 17:06:30 +0200 Subject: [PATCH 5/8] Added lincesing info and .gitignore for develocity integration --- .gitignore | 3 +++ .mvn/develocity.xml | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/.gitignore b/.gitignore index 648b93b06965..802ba4d5ab82 100644 --- a/.gitignore +++ b/.gitignore @@ -99,6 +99,9 @@ tools/marvin/marvin/cloudstackAPI/* unittest venv waf-* +waf3-* + +**/.mvn/.develocity* # this ignores _all files starting with '.'. Don't do that! #.* diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index 207fab6bc22b..b935f389405f 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -1,4 +1,24 @@ + Date: Fri, 14 Aug 2026 14:12:53 +0200 Subject: [PATCH 6/8] Point Develocity at develocity.apache.org Signed-off-by: Gasper Kojek --- .mvn/develocity.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml index b935f389405f..bde8355a5e2f 100644 --- a/.mvn/develocity.xml +++ b/.mvn/develocity.xml @@ -24,7 +24,7 @@ xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.gradle.com/develocity-maven https://www.gradle.com/schema/develocity-maven.xsd"> - https://ge.apache.org + https://develocity.apache.org false From c4e35b02f353a26fbce2c41b3bb1453f5723cde4 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Fri, 14 Aug 2026 14:15:41 +0200 Subject: [PATCH 7/8] Bump Develocity Maven extensions and drop unused access key env - develocity-maven-extension 1.21.4 -> 2.5.0 - common-custom-user-data-maven-extension 2.0 -> 2.4.0 CCUD 2.4.0 targets develocity-maven-extension 2.5.0, and both are compatible with the Develocity 2026.2.x server. Verified locally with `mvn -N validate`: both extensions load and the existing .mvn/develocity.xml is read and accepted unchanged. Also drop DEVELOCITY_ACCESS_KEY from ui.yml and pre-commit.yml, which do not run Maven. Signed-off-by: Gasper Kojek --- .github/workflows/pre-commit.yml | 3 --- .github/workflows/ui.yml | 3 --- .mvn/extensions.xml | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 91088afb996f..4de995479c59 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -26,9 +26,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} - jobs: pre-commit: name: Run pre-commit diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 160e0df6a6e3..7f23add660f0 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -32,9 +32,6 @@ concurrency: permissions: contents: read -env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} - jobs: build: runs-on: ubuntu-24.04 diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index 8f5335529d1d..ef246414a405 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -24,11 +24,11 @@ com.gradle develocity-maven-extension - 1.21.4 + 2.5.0 com.gradle common-custom-user-data-maven-extension - 2.0 + 2.4.0 From e4e5065f8431776c6ab3ef1b6a97dff33011605e Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Fri, 14 Aug 2026 14:28:48 +0200 Subject: [PATCH 8/8] Use the DEVELOCITY_ACCESS_KEY secret name Signed-off-by: Gasper Kojek --- .github/workflows/build.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/main-sonar-check.yml | 2 +- .github/workflows/rat.yml | 2 +- .github/workflows/sonar-check.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 72c4dc1388cd..ddea27ad029a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ concurrency: permissions: contents: read env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: build: runs-on: ubuntu-24.04 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 95ab304c0f04..e7cb692bac29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ concurrency: permissions: contents: read env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/main-sonar-check.yml b/.github/workflows/main-sonar-check.yml index e2d81b81df66..d5d0c1fb1c5d 100644 --- a/.github/workflows/main-sonar-check.yml +++ b/.github/workflows/main-sonar-check.yml @@ -26,7 +26,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: build: if: github.repository == 'apache/cloudstack' diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml index a13c4022ca94..f4f9e71d3c3f 100644 --- a/.github/workflows/rat.yml +++ b/.github/workflows/rat.yml @@ -29,7 +29,7 @@ concurrency: permissions: contents: read env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: build: runs-on: ubuntu-24.04 diff --git a/.github/workflows/sonar-check.yml b/.github/workflows/sonar-check.yml index 17a95b35cbed..08f8c6518fa0 100644 --- a/.github/workflows/sonar-check.yml +++ b/.github/workflows/sonar-check.yml @@ -25,7 +25,7 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} env: - DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} jobs: build: name: Sonar JaCoCo Coverage