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/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 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/")) } } }