build: migrate to Central Portal publishing

This commit is contained in:
SpaiR committed 2025-08-26 16:11:08 +03:00
1 parent 4b274163ec
commit 7b8f06a37b
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -42,4 +42,7 @@ publish_natives "windows"
publish_natives "linux" publish_natives "linux"
publish_natives "macos" 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." echo "All modules and natives published successfully."
+2 -2
View File
@@ -13,8 +13,8 @@ ext.configurePublishing = { packageName, packageDesc, packageVersion ->
repositories { repositories {
maven { maven {
name = 'MavenCentral' name = 'MavenCentral'
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' def releasesRepoUrl = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots' def snapshotsRepoUrl = 'https://central.sonatype.com/repository/maven-snapshots'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials { credentials {
username = System.getenv('NEXUS_UPD_ID')?.trim() ?: '' username = System.getenv('NEXUS_UPD_ID')?.trim() ?: ''