Skip to content

Commit

Permalink
Disable signing task for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
serpro69 committed Apr 9, 2024
1 parent 110ac11 commit 021b952
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ tasks.withType<PublishToMavenLocal>().configureEach {
*/
tasks.withType<Sign>().configureEach {
dependsOn(project.tasks.getByName("tag"))
onlyIf("Not dev") { !isDev.get() }
onlyIf("Release or snapshot") { isRelease.get() || isSnapshot.get() }
onlyIf("Not dev and snapshot") { !isDev.get() && !isSnapshot.get() }
onlyIf("Release") { isRelease.get() }
}
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/faker-lib-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ tasks.withType<PublishToMavenLocal>().configureEach {

tasks.withType<Sign>().configureEach {
dependsOn(project.tasks.getByName("tag"))
onlyIf("Not dev") { !isDev.get() }
onlyIf("Release or snapshot") { isRelease.get() || isSnapshot.get() }
onlyIf("Not dev and snapshot") { !isDev.get() && !isSnapshot.get() }
onlyIf("Release") { isRelease.get() }
}

0 comments on commit 021b952

Please sign in to comment.