From f04e1f9db763ef233d4faf732ff57c62b763f44a Mon Sep 17 00:00:00 2001 From: Jason Salaber Date: Thu, 14 Nov 2024 14:18:05 -0500 Subject: [PATCH] fix: use latest version of maven publish to publish to central portal --- .github/workflows/release.yml | 2 -- android-client-sdk/build.gradle | 4 ++-- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d484de..974169d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,7 +74,6 @@ jobs: ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} - ORG_GRADLE_PROJECT_sonatypeStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} run: | ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache @@ -85,7 +84,6 @@ jobs: ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} - ORG_GRADLE_PROJECT_sonatypeStagingProfileId: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} run: ./gradlew closeAndReleaseRepository - uses: DevCycleHQ/release-action/create-release@v2.3.0 diff --git a/android-client-sdk/build.gradle b/android-client-sdk/build.gradle index 6d43ff8..d5fc3e0 100644 --- a/android-client-sdk/build.gradle +++ b/android-client-sdk/build.gradle @@ -1,7 +1,7 @@ plugins { id 'com.android.library' id 'kotlin-android' - id "com.vanniktech.maven.publish" version "0.25.3" + id "com.vanniktech.maven.publish" version "0.30.0" id 'de.mannodermaus.android-junit5' } import com.vanniktech.maven.publish.SonatypeHost @@ -12,7 +12,7 @@ version = "2.1.1" mavenPublishing { coordinates(group, "android-client-sdk", version) - publishToMavenCentral(SonatypeHost.S01) + publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) signAllPublications() } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 42defcc..3499ded 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists