From 6fc822114ce18a0ddc065ec3d7e86d85aee3ba8e Mon Sep 17 00:00:00 2001 From: shabaraba Date: Mon, 5 Jan 2026 15:48:16 +0900 Subject: [PATCH] chore: change maven repo api endpoint --- build.gradle | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 66faf64..a79a716 100644 --- a/build.gradle +++ b/build.gradle @@ -146,14 +146,12 @@ publishing { } repositories { maven { - def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" - def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots" + def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" + def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/" url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) { - credentials { - username = "${sonatypeUsername}" - password = "${sonatypePassword}" - } + credentials { + username = findProperty('centralPortalUsername') + password = findProperty('centralPortalPassword') } } }