Skip to content

Commit fc05245

Browse files
committed
- publish-maven.gradle FIX (publish naming changed to the exact "publishSdkPublicationToMavenCentralRepository", not simple "publish", to control random build publishing)
1 parent 9d9020a commit fc05245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/publish-maven.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ plugins.withId('com.android.library') {
118118
}
119119
repositories {
120120
maven {
121-
name = 'ossrh-staging-api'
121+
name = 'MavenCentral'
122122
url = uri('https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/')
123123
credentials(HttpHeaderCredentials) {
124124
name = 'Authorization'
@@ -159,7 +159,7 @@ final def centralUploadToPortal = tasks.register('centralUploadToPortal') {
159159

160160
// any publish -> notify
161161
// notify portal only on remote publish (not on mavenLocal)
162-
def remoteTaskName = "publishSdkPublicationToOssrhStagingApiRepository"
162+
def remoteTaskName = "publishSdkPublicationToMavenCentralRepository"
163163
if (tasks.findByName(remoteTaskName) != null) {
164164
tasks.named(remoteTaskName) {
165165
finalizedBy(centralUploadToPortal)

0 commit comments

Comments
 (0)