Skip to content

Commit 7a96c41

Browse files
authored
Update maven plugin (#12964)
### Summary Now we need to upload to central portal instead of OSSRH ### Test plan Example workflow: https://github.com/pytorch/executorch/actions/runs/16602690475
1 parent 952fd1d commit 7a96c41

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
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: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ dependencies {
5858
androidTestImplementation 'org.jetbrains.kotlin:kotlin-test:1.9.23'
5959
}
6060

61-
import com.vanniktech.maven.publish.SonatypeHost
62-
6361
mavenPublishing {
64-
publishToMavenCentral(SonatypeHost.DEFAULT)
62+
publishToMavenCentral()
6563
signAllPublications()
6664

67-
coordinates("org.pytorch", "executorch-android", "0.7.0")
65+
coordinates("org.pytorch", "executorch-android", "0.7.0-SNAPSHOT")
6866

6967
pom {
7068
name = "ExecuTorch Android"
@@ -96,6 +94,6 @@ mavenPublishing {
9694

9795
repositories {
9896
maven {
99-
url "https://oss.sonatype.org/content/repositories/snapshots"
97+
url "https://central.sonatype.com/repository/maven-snapshots/"
10098
}
10199
}

0 commit comments

Comments
 (0)