Skip to content

Commit 62721f1

Browse files
Update maven plugin (#12966)
### Summary Now we need to upload to central portal instead of OSSRH ### Test plan Example workflow: https://github.com/pytorch/executorch/actions/runs/16602690475 --------- Co-authored-by: Hansong Zhang <[email protected]>
1 parent 5852f71 commit 62721f1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

extension/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ allprojects {
1717

1818
dependencies {
1919
classpath 'com.android.tools.build:gradle:8.9.0'
20-
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.31.0'
20+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.34.0'
2121
}
2222

2323
}

extension/android/executorch_android/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ dependencies {
5656
androidTestImplementation 'org.json:json:20250107'
5757
}
5858

59-
import com.vanniktech.maven.publish.SonatypeHost
60-
6159
mavenPublishing {
62-
publishToMavenCentral(SonatypeHost.DEFAULT)
60+
publishToMavenCentral()
6361
signAllPublications()
6462

6563
coordinates("org.pytorch", "executorch-android", "0.7.0")
@@ -94,6 +92,6 @@ mavenPublishing {
9492

9593
repositories {
9694
maven {
97-
url "https://oss.sonatype.org/content/repositories/snapshots"
95+
url "https://central.sonatype.com/repository/maven-snapshots/"
9896
}
9997
}

0 commit comments

Comments
 (0)