Skip to content

Commit c9a4467

Browse files
rashidelsanowclaude
andcommitted
Fix Central Portal URL to use OSSRH Staging API compatibility layer
The nexus publish plugin requires the staging API endpoint, not the Portal REST API which returned 404. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f77f5c commit c9a4467

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ plugins {
2525
nexusPublishing {
2626
repositories {
2727
sonatype {
28-
nexusUrl.set(uri("https://central.sonatype.com/api/v1/publisher/"))
29-
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/api/v1/publisher/"))
28+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
29+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
3030
username = System.getenv('OSSRH_USERNAME_V2') ?: ""
3131
password = System.getenv('OSSRH_PASSWORD_V2') ?: ""
3232
}

0 commit comments

Comments
 (0)