Skip to content

Commit 4d4b467

Browse files
committedApr 5, 2025··
Update injection script property names
1 parent b512196 commit 4d4b467

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed
 

Diff for: ‎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)
Please sign in to comment.