Skip to content

Commit bd0374b

Browse files
rombirliSamirM-BEcursoragent
authored
SONARJAVA-6031 : Support develocity (#56)
Co-authored-by: Samir M <samir.marini@sonarsource.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 391710e commit bd0374b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1515
cancel-in-progress: true
1616

17+
env:
18+
USE_DEVELOCITY: true
19+
DEVELOCITY_URL: https://develocity-public.sonar.build/
20+
1721
jobs:
1822
build:
1923
name: Build
@@ -35,6 +39,8 @@ jobs:
3539
deploy-pull-request: true
3640
artifactory-reader-role: private-reader # Override default public-reader
3741
artifactory-deployer-role: qa-deployer # Override default public-deployer
42+
use-develocity: ${{ env.USE_DEVELOCITY }}
43+
develocity-url: ${{ env.DEVELOCITY_URL }}
3844

3945
qa:
4046
needs: [build]
@@ -82,6 +88,8 @@ jobs:
8288
uses: SonarSource/ci-github-actions/config-maven@v1
8389
with:
8490
artifactory-reader-role: private-reader # Override default public-reader
91+
use-develocity: ${{ env.USE_DEVELOCITY }}
92+
develocity-url: ${{ env.DEVELOCITY_URL }}
8593
- name: Get Sonar Java plugin version
8694
id: resolve-sonar-java-plugin-version
8795
run: |

.mvn/develocity.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<develocity>
22
<server>
3-
<url>https://develocity.sonar.build</url>
3+
<url>https://develocity-public.sonar.build</url>
44
</server>
55
<buildCache>
66
<local>

0 commit comments

Comments
 (0)