Skip to content

Commit 7107d6d

Browse files
committed
Upgrade 'completeMavenCentralDeployment' task for Gradle 9+
1 parent 8423294 commit 7107d6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ if (hasSonatypeCredentials()) {
348348

349349
doLast {
350350
def connection = new URL('https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/'
351-
+ project.ext.mavenCentralNamespace + '?publishing_type=automatic').openConnection() as HttpURLConnection
351+
+ rootProject.ext.mavenCentralNamespace + '?publishing_type=automatic')
352+
.openConnection() as HttpURLConnection
352353
try {
353354
connection.with {
354355
requestMethod = 'POST'

0 commit comments

Comments
 (0)