From 7b8f06a37bc4f3a5c680206c7c28125b1d8dea2a Mon Sep 17 00:00:00 2001 From: SpaiR Date: Tue, 26 Aug 2025 14:35:28 +0300 Subject: [PATCH] build: migrate to Central Portal publishing --- buildSrc/scripts/publish.sh | 3 +++ publish.gradle | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/buildSrc/scripts/publish.sh b/buildSrc/scripts/publish.sh index d744408..9f73b82 100755 --- a/buildSrc/scripts/publish.sh +++ b/buildSrc/scripts/publish.sh @@ -42,4 +42,7 @@ publish_natives "windows" publish_natives "linux" publish_natives "macos" +echo "> Nexus manual upload..." +curl -D - -X POST -u "${NEXUS_UPD_ID}:${NEXUS_UPD_PASS}" "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.github.spair" + echo "All modules and natives published successfully." diff --git a/publish.gradle b/publish.gradle index a5c4f62..270918c 100644 --- a/publish.gradle +++ b/publish.gradle @@ -13,8 +13,8 @@ ext.configurePublishing = { packageName, packageDesc, packageVersion -> repositories { maven { name = 'MavenCentral' - 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 credentials { username = System.getenv('NEXUS_UPD_ID')?.trim() ?: ''