build: migrate to Central Portal publishing
This commit is contained in:
2 files changed
+5
-2
No files matched your search
@@ -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."
|
||||
+2
-2
@@ -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() ?: ''
|
||||
|
||||
Reference in new issue
Block a user