Skip to content

Commit 950cadd

Browse files
committed
build.gradle.kts: fix pluginBundle -> gradlePlugin
gradle/gradle#24458 (comment)
1 parent 88ab8ec commit 950cadd

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

build.gradle.kts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,27 +68,26 @@ tasks.withType<JavaCompile>().configureEach {
6868
}
6969

7070
gradlePlugin {
71+
// https://github.com/gradle/gradle/issues/24458#issuecomment-1713231089
72+
// pluginBundle.{website,vcsUrl,tags} moved to gradlePlugin in gradle 8.0 without proper announcement
73+
website = project.ext["website"] as String
74+
vcsUrl = project.ext["vcsUrl"] as String
7175
plugins {
7276
create(rootProject.name) {
7377
id = "$group.${rootProject.name}"
7478
displayName = rootProject.name
7579
implementationClass = "dev.minco.gradle.DefaultsPlugin"
7680
description = "Sets up sensible defaults for our gradle projects to avoid boilerplate "
81+
@Suppress("UNCHECKED_CAST")
82+
tags = project.ext["tags"] as List<String>
7783
}
7884
}
7985
}
8086

81-
pluginBundle {
82-
website = project.ext["website"] as String
83-
vcsUrl = project.ext["vcsUrl"] as String
84-
@Suppress("UNCHECKED_CAST")
85-
tags = project.ext["tags"] as List<String>
86-
}
87-
8887
publishing {
8988
publications.withType<MavenPublication> {
9089
pom.scm {
91-
url.set(pluginBundle.vcsUrl)
90+
url.set(gradlePlugin.vcsUrl)
9291
}
9392
}
9493

0 commit comments

Comments
 (0)