From 8e28c3602b30fd114cc8fcffadfa9ded0ca00a8e Mon Sep 17 00:00:00 2001 From: Gabriel Ittner Date: Thu, 8 Sep 2022 22:25:03 +0200 Subject: [PATCH 1/2] prepare changelog for next release --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9816b0bc..764e475e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Change Log +Version 0.22.0 *(unreleased)* +--------------------------------- + +- **NEW**: When publishing to maven central by setting `SONATYPE_HOST` or calling `publishToMavenCentral(...)` the plugin will now explicitly create a staging repository on Sonatype. This avoids issues where a single build would create multiple repositories +- The above change means that the plugin supports parallel builds and it is not neccessary anymore to use `--no-parallel` and `--no-daemon` together with `publish` +- **NEW**: When publishing with the `publish` or `publishAllPublicationsToMavenCentralRepository` tasks the plugin will automatically close the staging repository at the end of the build if it was successful. +- **NEW**: Option to also automatically release the staging repository after closing was susccessful +``` +SONATYPE_HOST=default # or S01 +SONATYPE_AUTOMATIC_RELEASE=true +``` +or +``` +mavenPublishing { + publishToMavenCentral("DEFAULT", true) + // or publishToMavenCentral("S01", true) +} +``` +- in case the option above is enabled, the `closeAndReleaseRepository` task is not needed anymore +- when closing the repository fails the plugin will fail the build immediately instead of timing out +- when closing the repository fails the plugin will try to print the error messages from Nexus +- increased timeouts for calls to the Sonatype Nexus APIs + + Version 0.21.0 *(2022-07-11)* --------------------------------- From 66ab21622d7d7f5424e08936896a073d4a4ee558 Mon Sep 17 00:00:00 2001 From: Gabriel Ittner Date: Thu, 8 Sep 2022 22:56:03 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764e475e..4461e33d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ mavenPublishing { - when closing the repository fails the plugin will fail the build immediately instead of timing out - when closing the repository fails the plugin will try to print the error messages from Nexus - increased timeouts for calls to the Sonatype Nexus APIs - +- fixed incompatibility with the `com.gradle.plugin-publish` plugin +- added wokaround for Kotlin multiplatform builds reporting disabled build optimizations Version 0.21.0 *(2022-07-11)* ---------------------------------