Skip to content

Commit

Permalink
fix: use latest version of maven publish to publish to central portal
Browse files Browse the repository at this point in the history
  • Loading branch information
jsalaber committed Nov 14, 2024
1 parent c47de3e commit f04e1f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions android-client-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,7 +12,7 @@ version = "2.1.1"

mavenPublishing {
coordinates(group, "android-client-sdk", version)
publishToMavenCentral(SonatypeHost.S01)
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f04e1f9

Please sign in to comment.