From acd7f8adf8b5f24a6d99d8da9f252719b6d86bb7 Mon Sep 17 00:00:00 2001 From: Jaroslav Bachorik Date: Mon, 23 Jun 2025 16:38:25 +0200 Subject: [PATCH] Update sonatype deployment --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 89d72cf9..766c7541 100644 --- a/build.gradle +++ b/build.gradle @@ -76,6 +76,14 @@ nexusPublishing { } } else { sonatype { + // see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration + // see https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-central + // Also for official doc + // staging repo publishing https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration + // snapshot publishing https://central.sonatype.org/publish/publish-portal-snapshots/#publishing-via-other-methods + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) + username = System.getenv("SONATYPE_USERNAME") password = System.getenv("SONATYPE_PASSWORD") }