Skip to content

Commit 476ddd9

Browse files
committed
fix(android): update Gradle publish command to use Maven Central and its endpoints
1 parent 42b2813 commit 476ddd9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ jobs:
259259

260260
- name: release android aar to maven central
261261
if: steps.tag.outputs.version != ''
262-
run: cd packages/android && ./gradlew publishReleasePublicationToOSSRHRepository -PVERSION=${{ steps.tag.outputs.version }}
262+
run: cd packages/android && ./gradlew publishReleasePublicationToCentralRepository -PVERSION=${{ steps.tag.outputs.version }}
263263
env:
264264
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
265265
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}

packages/android/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,8 @@ afterEvaluate {
9191

9292
repositories {
9393
maven {
94-
name = "OSSRH"
95-
url = project.hasProperty('VERSION') ?
96-
"https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" :
97-
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
94+
name = "Central"
95+
url = "https://central.sonatype.com/api/v1/publisher/upload"
9896
credentials {
9997
username = project.findProperty("MAVEN_CENTRAL_USERNAME") ?: ""
10098
password = project.findProperty("MAVEN_CENTRAL_TOKEN") ?: ""

0 commit comments

Comments
 (0)