@@ -13,6 +13,26 @@ plugins {
13
13
group = " com.gradle"
14
14
15
15
repositories {
16
+ maven {
17
+ name = " Solutions"
18
+ url = uri(" https://repo.gradle.org/artifactory/solutions" )
19
+ credentials {
20
+ username = providers
21
+ .environmentVariable(" GRADLE_SOLUTIONS_REPOSITORY_USERNAME" )
22
+ .orElse(providers.gradleProperty(" gradleSolutionsRepositoryUsername" ))
23
+ .get()
24
+ password = providers
25
+ .environmentVariable(" GRADLE_SOLUTIONS_REPOSITORY_PASSWORD" )
26
+ .orElse(providers.gradleProperty(" gradleSolutionsRepositoryPassword" ))
27
+ .get()
28
+ }
29
+ authentication {
30
+ create<BasicAuthentication >(" basic" )
31
+ }
32
+ content {
33
+ includeModule(" com.gradle.enterprise" , " build-scan-summary" )
34
+ }
35
+ }
16
36
exclusiveContent {
17
37
forRepository {
18
38
ivy {
@@ -36,6 +56,7 @@ val isDevelopmentRelease = !hasProperty("finalRelease")
36
56
val releaseVersion = releaseVersion()
37
57
val releaseNotes = releaseNotes()
38
58
val distributionVersion = distributionVersion()
59
+ val buildScanSummaryVersion = " 0.9-2023.2"
39
60
40
61
allprojects {
41
62
version = releaseVersion.get()
@@ -47,7 +68,7 @@ val mavenComponents by configurations.creating
47
68
48
69
dependencies {
49
70
argbash(" argbash:argbash:2.10.0@zip" )
50
- commonComponents(project(path = " :fetch- build-scan-data-cmdline-tool " , configuration = " shadow " ) )
71
+ commonComponents(" com.gradle.enterprise: build-scan-summary: ${buildScanSummaryVersion} " )
51
72
mavenComponents(project(" :configure-gradle-enterprise-maven-extension" ))
52
73
mavenComponents(" com.gradle:gradle-enterprise-maven-extension:1.18.4" )
53
74
mavenComponents(" com.gradle:common-custom-user-data-maven-extension:1.13" )
@@ -95,7 +116,10 @@ val copyGradleScripts by tasks.registering(Copy::class) {
95
116
// local variable required for configuration cache compatibility
96
117
// https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:not_yet_implemented:accessing_top_level_at_execution
97
118
val releaseVersion = releaseVersion
119
+ val buildScanSummaryVersion = buildScanSummaryVersion
120
+
98
121
inputs.property(" project.version" , releaseVersion)
122
+ inputs.property(" summary.version" , buildScanSummaryVersion)
99
123
100
124
from(layout.projectDirectory.file(" LICENSE" ))
101
125
from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
@@ -104,6 +128,7 @@ val copyGradleScripts by tasks.registering(Copy::class) {
104
128
from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
105
129
exclude(" gradle-init-scripts" )
106
130
filter { line: String -> line.replace(" <HEAD>" , releaseVersion.get()) }
131
+ filter { line: String -> line.replace(" <SUMMARY_VERSION>" , buildScanSummaryVersion) }
107
132
}
108
133
from(layout.projectDirectory.dir(" components/scripts/gradle" )) {
109
134
include(" gradle-init-scripts/**" )
@@ -116,6 +141,7 @@ val copyGradleScripts by tasks.registering(Copy::class) {
116
141
include(" lib/**" )
117
142
exclude(" lib/cli-parsers" )
118
143
filter { line: String -> line.replace(" <HEAD>" , releaseVersion.get()) }
144
+ filter { line: String -> line.replace(" <SUMMARY_VERSION>" , buildScanSummaryVersion) }
119
145
}
120
146
from(generateBashCliParsers.map { it.outputDir.file(" lib/cli-parsers/gradle" ) }) {
121
147
into(" lib/" )
@@ -133,14 +159,18 @@ val copyMavenScripts by tasks.registering(Copy::class) {
133
159
// local variable required for configuration cache compatibility
134
160
// https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:not_yet_implemented:accessing_top_level_at_execution
135
161
val releaseVersion = releaseVersion
162
+ val buildScanSummaryVersion = buildScanSummaryVersion
163
+
136
164
inputs.property(" project.version" , releaseVersion)
165
+ inputs.property(" summary.version" , buildScanSummaryVersion)
137
166
138
167
from(layout.projectDirectory.file(" LICENSE" ))
139
168
from(layout.projectDirectory.dir(" release" ).file(" version.txt" ))
140
169
rename(" version.txt" , " VERSION" )
141
170
142
171
from(layout.projectDirectory.dir(" components/scripts/maven" )) {
143
172
filter { line: String -> line.replace(" <HEAD>" , releaseVersion.get()) }
173
+ filter { line: String -> line.replace(" <SUMMARY_VERSION>" , buildScanSummaryVersion) }
144
174
}
145
175
from(layout.projectDirectory.dir(" components/scripts/" )) {
146
176
include(" README.md" )
@@ -149,6 +179,7 @@ val copyMavenScripts by tasks.registering(Copy::class) {
149
179
include(" lib/**" )
150
180
exclude(" lib/cli-parsers" )
151
181
filter { line: String -> line.replace(" <HEAD>" , releaseVersion.get()) }
182
+ filter { line: String -> line.replace(" <SUMMARY_VERSION>" , buildScanSummaryVersion) }
152
183
}
153
184
from(generateBashCliParsers.map { it.outputDir.file(" lib/cli-parsers/maven" ) }) {
154
185
into(" lib/" )
@@ -300,4 +331,4 @@ fun releaseVersion(): Provider<String> {
300
331
fun releaseNotes (): Provider <String > {
301
332
val releaseNotesFile = layout.projectDirectory.file(" release/changes.md" )
302
333
return providers.fileContents(releaseNotesFile).asText.map { it.trim() }
303
- }
334
+ }
0 commit comments