Skip to content

Commit

Permalink
Workaround Gradle piblishing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daugeldauge committed Jun 9, 2024
1 parent d51c6eb commit 08dcf23
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions buildSrc/src/main/kotlin/publish-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,11 @@ val release: Boolean
get() = hasProperty("release")

fun stringProperty(propertyName: String) = findProperty(propertyName) as String?

//region Fix Gradle warning about signing tasks using publishing task outputs without explicit dependencies
//https://github.com/gradle/gradle/issues/26091
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}
//endregion

0 comments on commit 08dcf23

Please sign in to comment.