Skip to content

Commit 40e9887

Browse files
committed
stage-vote-release: avoid failures when "init" does not exist
1 parent ab61e0c commit 40e9887

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/stage-vote-release-plugin/src/main/kotlin/com/github/vlsi/gradle/release/StageVoteReleasePlugin.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ class StageVoteReleasePlugin @Inject constructor(private val instantiator: Insta
145145

146146
configureNexusStaging(releaseExt)
147147

148-
tasks.named("init").hide()
148+
plugins.withId("build-init") {
149+
tasks.named("init").hide()
150+
}
149151
hideMavenPublishTasks()
150152

151153
// Tasks from NexusStagingPlugin

0 commit comments

Comments
 (0)