Skip to content

Resolve build scan summary dependencies #617

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 22, 2024

Conversation

sorin-florea
Copy link
Member

@sorin-florea sorin-florea commented May 17, 2024

The dependencies of the build-scan-summary library will be resolved from maven central.

@sorin-florea sorin-florea changed the title Download build scan summary dependencies Resolve build scan summary dependencies May 17, 2024
Copy link
Member

@erichaagdev erichaagdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really clever. Have some feedback though.

build.gradle.kts Outdated

dependencies {
argbash("argbash:argbash:2.10.0@zip")
mavenComponents(project(":configure-gradle-enterprise-maven-extension"))
mavenComponents("com.gradle:gradle-enterprise-maven-extension:1.18.4")
mavenComponents("com.gradle:common-custom-user-data-maven-extension:1.13")
buildScanSummaryComponent("com.gradle.develocity:build-scan-summary:$buildScanSummaryVersion")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the group be com.gradle like the other things we publish? I see the build-scan-summary is published under the com.gradle.develocity group too.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

build.gradle.kts Outdated
val buildScanSummaryComponent by configurations.creating {
attributes.attribute(
TargetJvmEnvironment.TARGET_JVM_ENVIRONMENT_ATTRIBUTE,
project.objects.named(TargetJvmEnvironment.STANDARD_JVM)
Copy link
Member

@erichaagdev erichaagdev May 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
project.objects.named(TargetJvmEnvironment.STANDARD_JVM)
objects.named(TargetJvmEnvironment.STANDARD_JVM)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

build.gradle.kts Outdated
@@ -30,33 +30,53 @@ repositories {
}
}
mavenCentral()
maven("file://${layout.projectDirectory.dir("components/develocity").asFile.path}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a content exclusion so Gradle does not attempt to resolve build-scan-summary from Maven Central?

https://ge.solutions-team.gradle.com/s/m6invvi5asxg2/performance/network-activity#network-requests-all-0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@jthurne jthurne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with Eric's comments, otherwise LGTM.

@sorin-florea sorin-florea merged commit 1d2e19d into sorin/consolidation May 22, 2024
@sorin-florea sorin-florea deleted the sorin/download-dependencies branch May 22, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants