From bff3e7118e6ce951e4f1e764dca34aaf8dd977c3 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Fri, 16 May 2025 23:11:26 +0200 Subject: [PATCH] Publish to Sonatype Central Portal - https://central.sonatype.org/faq/what-is-different-between-central-portal-and-legacy-ossrh/ - https://central.sonatype.org/register/central-portal/ - https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/ --- build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 1a1591e..b4a1209 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -46,6 +46,8 @@ nexusPublishing { stagingProfileId.set(System.getenv("SONATYPE_STAGING_PROFILE_ID") ?: findProperty("sonatype.staging.profile.id")) //can reduce execution time by even 10 seconds username.set(System.getenv("SONATYPE_USERNAME") ?: findProperty("sonatype.username")) password.set(System.getenv("SONATYPE_PASSWORD") ?: findProperty("sonatype.password")) + nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/")) + snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/")) } } }