Skip to content

Commit 55f93cc

Browse files
committed
Download build scan summary dependencies
1 parent 11d2c87 commit 55f93cc

File tree

3 files changed

+116
-5
lines changed

3 files changed

+116
-5
lines changed

Diff for: build.gradle.kts

+23-5
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,53 @@ repositories {
3030
}
3131
}
3232
mavenCentral()
33+
maven("file://${layout.projectDirectory.dir("components/develocity").asFile.path}")
3334
}
3435

3536
val isDevelopmentRelease = !hasProperty("finalRelease")
3637
val releaseVersion = releaseVersion()
3738
val releaseNotes = releaseNotes()
3839
val distributionVersion = distributionVersion()
39-
val buildScanSummaryVersion = "0.9-2024.1.2-20240515173555"
40+
val buildScanSummaryVersion = "0.9-2024.1.2-prerelease"
4041

4142
allprojects {
4243
version = releaseVersion.get()
4344
}
4445

4546
val argbash by configurations.creating
4647
val mavenComponents by configurations.creating
48+
val buildScanSummaryComponent by configurations.creating {
49+
attributes.attribute(
50+
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
51+
project.objects.named(TargetJvmEnvironment.STANDARD_JVM)
52+
)
53+
}
4754

4855
dependencies {
4956
argbash("argbash:argbash:2.10.0@zip")
5057
mavenComponents(project(":configure-gradle-enterprise-maven-extension"))
5158
mavenComponents("com.gradle:gradle-enterprise-maven-extension:1.18.4")
5259
mavenComponents("com.gradle:common-custom-user-data-maven-extension:1.13")
60+
buildScanSummaryComponent("com.gradle.develocity:build-scan-summary:$buildScanSummaryVersion")
5361
}
5462

5563
shellcheck {
5664
additionalArguments = "-a -x"
5765
shellcheckVersion = "v0.10.0"
5866
}
5967

68+
val copyDevelocityComponents by tasks.registering(Sync::class) {
69+
from(buildScanSummaryComponent)
70+
into(project.layout.buildDirectory.dir("components/develocity"))
71+
include("build-scan-summary-$buildScanSummaryVersion.jar")
72+
}
73+
74+
val copyThirdPartyComponents by tasks.registering(Sync::class) {
75+
from(buildScanSummaryComponent)
76+
into(project.layout.buildDirectory.dir("components/third-party"))
77+
exclude("build-scan-summary-$buildScanSummaryVersion.jar")
78+
}
79+
6080
val unpackArgbash by tasks.registering(Copy::class) {
6181
group = "argbash"
6282
description = "Unpacks Argbash."
@@ -129,12 +149,10 @@ val copyGradleScripts by tasks.registering(Copy::class) {
129149
from(generateBashCliParsers.map { it.outputDir.file("lib/cli-parsers/gradle") }) {
130150
into("lib/scripts/")
131151
}
132-
from(layout.projectDirectory.dir("components/develocity")) {
133-
include("build-scan-summary-${buildScanSummaryVersion}.jar")
152+
from(copyDevelocityComponents) {
134153
into("lib/develocity/")
135154
}
136-
from(layout.projectDirectory.dir("components/third-party")) {
137-
include("build-scan-summary-dependencies-${buildScanSummaryVersion}.jar")
155+
from(copyThirdPartyComponents) {
138156
into("lib/third-party/")
139157
}
140158
into(layout.buildDirectory.dir("scripts/gradle"))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<!-- This module was also published with a richer model, Gradle metadata, -->
5+
<!-- which should be used instead. Do not delete the following line which -->
6+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7+
<!-- that they should prefer consuming it instead. -->
8+
<!-- do_not_remove: published-with-gradle-metadata -->
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.gradle.develocity</groupId>
11+
<artifactId>build-scan-summary</artifactId>
12+
<version>0.9-2024.1.2-prerelease</version>
13+
<dependencies>
14+
<dependency>
15+
<groupId>com.google.guava</groupId>
16+
<artifactId>guava</artifactId>
17+
<version>33.0.0-jre</version>
18+
<scope>runtime</scope>
19+
<exclusions>
20+
<exclusion>
21+
<groupId>com.google.code.findbugs</groupId>
22+
<artifactId>*</artifactId>
23+
</exclusion>
24+
</exclusions>
25+
</dependency>
26+
<dependency>
27+
<groupId>com.squareup.okhttp3</groupId>
28+
<artifactId>okhttp</artifactId>
29+
<version>4.10.0</version>
30+
<scope>runtime</scope>
31+
</dependency>
32+
<dependency>
33+
<groupId>com.squareup.okhttp3</groupId>
34+
<artifactId>okhttp-tls</artifactId>
35+
<version>4.11.0</version>
36+
<scope>runtime</scope>
37+
</dependency>
38+
<dependency>
39+
<groupId>io.gsonfire</groupId>
40+
<artifactId>gson-fire</artifactId>
41+
<version>1.8.5</version>
42+
<scope>runtime</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>com.squareup.okhttp3</groupId>
46+
<artifactId>logging-interceptor</artifactId>
47+
<version>4.10.0</version>
48+
<scope>runtime</scope>
49+
</dependency>
50+
<dependency>
51+
<groupId>io.swagger</groupId>
52+
<artifactId>swagger-annotations</artifactId>
53+
<version>1.6.10</version>
54+
<scope>runtime</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>com.google.code.gson</groupId>
58+
<artifactId>gson</artifactId>
59+
<version>2.10.1</version>
60+
<scope>runtime</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>javax.ws.rs</groupId>
64+
<artifactId>jsr311-api</artifactId>
65+
<version>1.1.1</version>
66+
<scope>runtime</scope>
67+
</dependency>
68+
<dependency>
69+
<groupId>javax.ws.rs</groupId>
70+
<artifactId>javax.ws.rs-api</artifactId>
71+
<version>2.1.1</version>
72+
<scope>runtime</scope>
73+
</dependency>
74+
<dependency>
75+
<groupId>javax.annotation</groupId>
76+
<artifactId>javax.annotation-api</artifactId>
77+
<version>1.3.2</version>
78+
<scope>runtime</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>com.google.code.findbugs</groupId>
82+
<artifactId>jsr305</artifactId>
83+
<version>3.0.2</version>
84+
<scope>runtime</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>info.picocli</groupId>
88+
<artifactId>picocli</artifactId>
89+
<version>4.7.5</version>
90+
<scope>runtime</scope>
91+
</dependency>
92+
</dependencies>
93+
</project>

0 commit comments

Comments
 (0)