From 73085d8c52ee2029f480c3e9bf78303557a0053b Mon Sep 17 00:00:00 2001 From: Fernando Garcia Date: Wed, 18 Jun 2025 10:52:08 +0200 Subject: [PATCH 1/2] ANDROID-16206 Update. Migrate sonatype publishing to Central Portal --- .github/workflows/release.yml | 2 +- build.gradle | 2 +- publish_maven_central.gradle | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f1fdd2..8cd623d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ 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 -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepository" + run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DLIBRARY_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepositories" - name: Prepare release notes run: | diff --git a/build.gradle b/build.gradle index 85bd8cb..edfc18e 100644 --- a/build.gradle +++ b/build.gradle @@ -24,7 +24,7 @@ buildscript { plugins { id("io.gitlab.arturbosch.detekt").version("1.18.1") - 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 } detekt { 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 af813f78231afdccdfdd46200320d4fae943b897 Mon Sep 17 00:00:00 2001 From: Fernando Garcia Date: Wed, 18 Jun 2025 12:41:03 +0200 Subject: [PATCH 2/2] ANDROID-16206 Remove. Unused variable declaration --- gradle.properties | 3 --- 1 file changed, 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 8dc257f..40ab1d9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,8 +19,5 @@ kapt.incremental.apt=true # It's going to be deleted in Kotlin 1.8 kapt.use.worker.api=true -# This will be default on AGP 8.0 -android.r8.failOnMissingClasses=true - ###### Project settings ###### kotlin.code.style=official