Skip to content

Commit

Permalink
Sign only when publishing release JAR (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz S. Nowak <mateusz.s.nowak@intel.com>
  • Loading branch information
mateuszsnowak authored Jul 6, 2023
1 parent 7f6481a commit 84c4aa4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,7 @@ publishing {
signing {
sign publishing.publications.mavenJava
}

tasks.withType(Sign) {
onlyIf { !project.version.endsWith('SNAPSHOT') }
}

0 comments on commit 84c4aa4

Please sign in to comment.