Skip to content

Commit

Permalink
TECH: turned on signing (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
AzamatCherchesov committed Feb 14, 2024
1 parent 6f22689 commit 9d3632f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ signing {
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
}

tasks.withType<Sign>().configureEach {
onlyIf {
val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository")
val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository")
isReleaseQueued || isSnapshotQueued
}
}
//tasks.withType<Sign>().configureEach {
// onlyIf {
// val isReleaseQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeReleasesRepoName}Repository")
// val isSnapshotQueued = gradle.taskGraph.hasTask("publishAllPublicationsTo${sonatypeSnapshotsRepoName}Repository")
// isReleaseQueued || isSnapshotQueued
// }
//}

0 comments on commit 9d3632f

Please sign in to comment.