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 dd7844a..75d4aa8 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 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' } 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/")) } } }