Skip to content

Commit

Permalink
[#1461] BUILD: Allow publishing without signing for non-release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Nov 13, 2021
1 parent ac72e90 commit e820415
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Picocli follows [semantic versioning](http://semver.org/).
## <a name="4.6.3-fixes"></a> Fixed issues
* [#1462] DOC, BUILD, DEP: Extend documentation on argument files, fix broken/outdated links, update dependencies. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request.
* [#1457] DOC: add caution about arguments in @files with quoted option parameters. Thanks to [Andreas Deininger](https://github.com/deining) for the pull request.
* [#1459] BUILD: The nexus-staging Gradle plugin must be applied to the root project, not to subprojects. Thanks to [Andreas Deininger](https://github.com/deining) for raising tihs.
* [#1461] BUILD: Allow publishing without signing for non-release versions. Thanks to [Andreas Deininger](https://github.com/deining) for raising this.
* [#1459] BUILD: The nexus-staging Gradle plugin must be applied to the root project, not to subprojects. Thanks to [Andreas Deininger](https://github.com/deining) for raising this.

## <a name="4.6.3-deprecated"></a> Deprecations
No features were deprecated in this release.
Expand Down
3 changes: 3 additions & 0 deletions gradle/publish-mavencentral.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ publishing {
}
}

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

signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("publish") }
sign publishing.publications
}

Expand Down

0 comments on commit e820415

Please sign in to comment.