Skip to content

Commit b4ee42d

Browse files
authored
Merge pull request #818 from gradle/bot/develocity-injection-init-script-update
Update develocity-injection init script to v2.0
2 parents 87424c8 + 4d4b467 commit b4ee42d

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ val develocityMavenComponents by configurations.creating
8787

8888
dependencies {
8989
argbash("argbash:argbash:2.10.0@zip")
90-
develocityInjection("com.gradle:develocity-injection:1.2")
90+
develocityInjection("com.gradle:develocity-injection:2.0")
9191
develocityComponents("com.gradle:build-scan-summary:$buildScanSummaryVersion")
9292
develocityMavenComponents("com.gradle:gradle-enterprise-maven-extension:1.18.4")
9393
mavenComponents(project(path = ":configure-develocity-maven-extension", configuration = "shadow"))

components/scripts/lib/gradle.sh

+16-10
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,29 @@ invoke_gradle() {
1515
args+=(
1616
--init-script "${INIT_SCRIPTS_DIR}/develocity-injection.gradle"
1717
--init-script "${INIT_SCRIPTS_DIR}/configure-build-validation.gradle"
18-
-Ddevelocity.injection.init-script-name=develocity-injection.gradle
19-
-Ddevelocity.injection-enabled=true
18+
-Ddevelocity-injection.init-script-name=develocity-injection.gradle
19+
-Ddevelocity-injection.enabled=true
2020
)
2121

2222
if [ "$enable_develocity" == "on" ]; then
2323
args+=(
24-
-Dgradle.plugin-repository.url=https://plugins.gradle.org/m2
25-
-Ddevelocity.plugin.version="3.14.1"
26-
-Ddevelocity.ccud-plugin.version="2.2.1"
24+
-Ddevelocity-injection.plugin-repository.url=https://plugins.gradle.org/m2
25+
-Ddevelocity-injection.develocity-plugin.version="3.14.1"
26+
-Ddevelocity-injection.ccud-plugin.version="2.2.1"
2727
)
2828
fi
2929

3030
if [ -n "${develocity_server}" ]; then
3131
args+=(
32-
-Ddevelocity.url="${develocity_server}"
33-
-Ddevelocity.enforce-url=true
34-
-Ddevelocity.allow-untrusted-server=false
32+
-Ddevelocity-injection.url="${develocity_server}"
33+
-Ddevelocity-injection.enforce-url=true
34+
-Ddevelocity-injection.allow-untrusted-server=false
35+
)
36+
fi
37+
38+
if [[ "${debug_mode}" == "on" ]]; then
39+
args+=(
40+
-Ddevelocity-injection.debug=true
3541
)
3642
fi
3743

@@ -41,8 +47,8 @@ invoke_gradle() {
4147
-Ddevelocity.build-validation.runId="${RUN_ID}"
4248
-Ddevelocity.build-validation.runNum="${run_num}"
4349
-Ddevelocity.build-validation.scriptsVersion="${SCRIPT_VERSION}"
44-
-Ddevelocity.build-scan.upload-in-background=false
45-
-Ddevelocity.capture-file-fingerprints=true
50+
-Ddevelocity-injection.upload-in-background=false
51+
-Ddevelocity-injection.capture-file-fingerprints=true
4652
-Dpts.enabled=false
4753
)
4854

0 commit comments

Comments
 (0)