Skip to content

Commit

Permalink
Fix publishing after the update to Gradle 8
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnatBeresnev committed Nov 1, 2023
1 parent e369c6f commit c08b7ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build-logic/src/main/kotlin/dokkabuild.publish-base.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,14 @@ signing {
sign(publishing.publications)
setRequired(provider { !project.version.toString().endsWith("-SNAPSHOT") })
}

// This is a hack for a Gradle 8 problem, see https://github.com/gradle/gradle/issues/26091
//
// Fails with the following error otherwise:
// > Task ':runner-gradle-classic:publishDokkaPluginMarkerMavenPublicationToSpaceTestRepository' uses
// > this output of task ':runner-gradle-classic:signPluginMavenPublication' without declaring an
// > explicit or implicit dependency.
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

0 comments on commit c08b7ae

Please sign in to comment.