Skip to content

Commit

Permalink
only sign to sonatype (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsargent authored Dec 3, 2024
1 parent 519feb5 commit 84e0f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ publishing { //https://docs.gradle.org/current/userguide/publishing_maven.html
}
}

ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext.isReleaseVersion = ! project.version.endsWith("SNAPSHOT")

signing { // https://docs.gradle.org/current/userguide/signing_plugin.html
required { isReleaseVersion }
required { isReleaseVersion && gradle.taskGraph.hasTask("publishToSonatype") }
sign publishing.publications.mavenJava
}

0 comments on commit 84e0f2f

Please sign in to comment.