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

+2 -2
View File
@@ -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() ?: ''