From fd429bba2ba77bad8c4453c56a1a3c3a9fb5783a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 8 Apr 2024 21:47:07 +0100 Subject: [PATCH] Update gradle-nexus.publish-plugin from 1.3.0 to 2.0.0 --- .github/workflows/ci.yml | 2 +- build.gradle | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe6a526..02191ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,7 +96,7 @@ jobs: java-version: 11 - name: Build and release - run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepository releaseSummary + run: ./gradlew githubRelease publishToSonatype closeAndReleaseStagingRepositories releaseSummary env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} NEXUS_TOKEN_USER: ${{secrets.NEXUS_TOKEN_USER}} diff --git a/build.gradle b/build.gradle index 6bc7ad1..a7f079d 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id "org.shipkit.shipkit-changelog" version "1.2.0" id "org.shipkit.shipkit-github-release" version "1.2.0" id "org.shipkit.shipkit-auto-version" version "1.2.2" - id "io.github.gradle-nexus.publish-plugin" version "1.3.0" + id "io.github.gradle-nexus.publish-plugin" version "2.0.0" id "org.jetbrains.kotlin.jvm" version "1.9.20" apply false id "org.jetbrains.dokka" version "1.9.10" apply false } @@ -59,7 +59,7 @@ if (isSnapshot) { //snapshot versions do not produce changelog / Github releases enabled = false } - tasks.named("closeAndReleaseStagingRepository") { + tasks.named("closeAndReleaseStagingRepositories") { //snapshot binaries are available in Sonatype without the need to close the staging repo enabled = false }