Skip to content

Commit d11ca3f

Browse files
nakamura-toclaude
andcommitted
chore: update Nexus publishing to use Central Portal API
Configure sonatype repository to use the new Central Portal staging API endpoints as recommended by the migration guide. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0a92200 commit d11ca3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,11 @@ rootProject.apply {
311311

312312
nexusPublishing {
313313
repositories {
314-
sonatype()
314+
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
315+
sonatype {
316+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
317+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
318+
}
315319
}
316320
packageGroup.set("org.seasar")
317321
}

0 commit comments

Comments
 (0)