Update the publishing process to maven to reflect changes to gradle 8.14

PiperOrigin-RevId: 767080934
Change-Id: Ie67f4ae7b7dc699951b405afc66597a5ecb606d8
This commit is contained in:
Pierre Precourt 2025-06-04 04:15:36 -07:00 committed by Copybara-Service
parent 5bccdc2ca6
commit ee15895788
2 changed files with 4 additions and 14 deletions

View File

@ -21,8 +21,8 @@ subprojects {
maven { // The google mirror is less flaky than mavenCentral()
url 'https://maven-central.storage-download.googleapis.com/repos/central/data/'
}
mavenCentral()
mavenLocal()
}
ext {
@ -166,7 +166,7 @@ subprojects {
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact project.tasks.shadowJar
pom {
name = project.group + ':' + project.name
@ -202,6 +202,7 @@ subprojects {
}
}
}
repositories {
maven {
def stagingUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
@ -216,23 +217,11 @@ subprojects {
}
}
}
mavenLocal()
}
}
signing {
required false
sign publishing.publications.maven
}
plugins.withId('com.github.johnrengelman.shadow') {
publishing {
publications {
maven {
artifact project.tasks.shadowJar
}
}
}
}
}
}

View File

@ -30,6 +30,7 @@ protobuf {
dependsOn("processResources")
dependsOn("extractTestProto")
dependsOn("sourcesJar")
dependsOn("generatePomFileForMavenPublication")
}
}
}