Skip to content

Commit 94baf22

Browse files
authored
Fix space assignment deprecations in init-scripts (#542)
Fixes the Groovy syntax in 2 init-scripts to avoid deprecation warnings. The fix to the DV injection script is temporary, and will be replaced by a fix in the upstream reference script. Fixes #541
2 parents 986922f + 6f10c21 commit 94baf22

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/ci-integ-test-full.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: CI-integ-test-full
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- 'main'
68
paths:
79
- 'dist/**'
810

.github/workflows/ci-update-dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- 'main'
8+
- 'prerelease/**'
89
- 'release/**'
910
paths-ignore:
1011
- 'dist/**'

sources/src/resources/init-scripts/gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ buildscript {
1515
if (pluginRepositoryUsername && pluginRepositoryPassword) {
1616
logger.lifecycle("Applying credentials for plugin repository: ${pluginRepositoryUrl}")
1717
credentials {
18-
username(pluginRepositoryUsername)
19-
password(pluginRepositoryPassword)
18+
username = pluginRepositoryUsername
19+
password = pluginRepositoryPassword
2020
}
2121
authentication {
2222
basic(BasicAuthentication)

sources/src/resources/init-scripts/gradle-actions.inject-develocity.init.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ initscript {
4545

4646
repositories {
4747
maven {
48-
url pluginRepositoryUrl
48+
url = pluginRepositoryUrl
4949
if (pluginRepositoryUsername && pluginRepositoryPassword) {
5050
logger.lifecycle("Using credentials for plugin repository")
5151
credentials {
52-
username(pluginRepositoryUsername)
53-
password(pluginRepositoryPassword)
52+
username = pluginRepositoryUsername
53+
password = pluginRepositoryPassword
5454
}
5555
authentication {
5656
basic(BasicAuthentication)

0 commit comments

Comments
 (0)