Skip to content

Commit

Permalink
Fix gradle warning during signing tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidepianca98 committed Apr 23, 2024
1 parent 72297a3 commit bd088fa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kmqtt-broker/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ tasks {
}
}

// 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)
}

publishing {
repositories {
maven {
Expand Down
7 changes: 7 additions & 0 deletions kmqtt-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ kotlin {
}
}

// 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)
}

publishing {
repositories {
maven {
Expand Down
7 changes: 7 additions & 0 deletions kmqtt-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ kotlin {
}
}

// 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)
}

publishing {
repositories {
maven {
Expand Down

0 comments on commit bd088fa

Please sign in to comment.