From e20a69b365fded81d951a372c2a92999bff3c169 Mon Sep 17 00:00:00 2001 From: David Pastor Herranz Date: Mon, 30 Jun 2025 17:39:15 +0200 Subject: [PATCH 1/2] ANDROID-16209 Migrate [android-nested-scroll-webview] from OSSRH to Central Portal --- .github/workflows/snapshot.yml | 3 ++- publish_maven_central.gradle | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index dd7844a..ac4ba29 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -22,4 +22,5 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} - run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }}" + run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }} + --max-workers 1 closeAndReleaseStagingRepository" diff --git a/publish_maven_central.gradle b/publish_maven_central.gradle index 1d8d625..cb0c007 100644 --- a/publish_maven_central.gradle +++ b/publish_maven_central.gradle @@ -6,6 +6,8 @@ nexusPublishing { stagingProfileId = "f7fe7699e57a" username = System.getenv("MOBILE_MAVENCENTRAL_USER") password = System.getenv("MOBILE_MAVENCENTRAL_PASSWORD") + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) } } } From 1d6adae0722dfd3f4b3b304e997b1af2dd437fc4 Mon Sep 17 00:00:00 2001 From: David Pastor Herranz Date: Mon, 30 Jun 2025 17:44:38 +0200 Subject: [PATCH 2/2] ANDROID-16209 update to 2.0.0 publishing plugin --- .github/workflows/release.yml | 2 +- .github/workflows/snapshot.yml | 2 +- build.gradle | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6edc133..5484234 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,4 +20,4 @@ jobs: ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} - --max-workers 1 closeAndReleaseStagingRepository" + --max-workers 1 closeAndReleaseStagingRepositories" diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index ac4ba29..75d4aa8 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -23,4 +23,4 @@ jobs: ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }} run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.inputs.snapshotVersion }} - --max-workers 1 closeAndReleaseStagingRepository" + --max-workers 1 closeAndReleaseStagingRepositories" diff --git a/build.gradle b/build.gradle index 06e7458..eda0bb0 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ plugins { id 'com.android.application' version '7.4.2' apply false id 'com.android.library' version '7.4.2' apply false id 'org.jetbrains.kotlin.android' version '1.6.21' apply false - id 'io.github.gradle-nexus.publish-plugin' version '1.3.0' apply false + id 'io.github.gradle-nexus.publish-plugin' version '2.0.0' apply false id 'io.gitlab.arturbosch.detekt' version '1.22.0' }