-
Notifications
You must be signed in to change notification settings - Fork 23
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
Resolve build scan summary dependencies #617
Conversation
There was a problem hiding this 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") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project.objects.named(TargetJvmEnvironment.STANDARD_JVM) | |
objects.named(TargetJvmEnvironment.STANDARD_JVM) |
There was a problem hiding this comment.
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}") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this 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.
The dependencies of the
build-scan-summary
library will be resolved from maven central.