Skip to content

Commit cd9c600

Browse files
committed
Fix IP compatibility
Fix by accessing the "buildScan" extension that's available since Develocity Gradle plugin 4.0.
1 parent ccca907 commit cd9c600

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public abstract class ShadowPlugin : Plugin<Project> {
3232
// the behavior with the old plugin when applying in that order.
3333
apply(LegacyShadowPlugin::class.java)
3434

35-
project.rootProject.plugins.withId("com.gradle.develocity") {
35+
project.plugins.withId("com.gradle.develocity") {
3636
configureBuildScan(project)
3737
}
3838
}
3939

4040
private fun configureBuildScan(project: Project) {
4141
val shadowTasks = project.tasks.withType(ShadowJar::class.java)
42-
val buildScan = project.rootProject.extensions.getByType(BuildScanConfiguration::class.java)
42+
val buildScan = project.extensions.getByType(BuildScanConfiguration::class.java)
4343
buildScan.buildFinished {
4444
shadowTasks.forEach { task ->
4545
// TODO Add actual Shadow stats as custom values

0 commit comments

Comments
 (0)