Skip to content

Commit 7b8f06a

Browse files
committed
build: migrate to Central Portal publishing
1 parent 4b27416 commit 7b8f06a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

buildSrc/scripts/publish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ publish_natives "windows"
4242
publish_natives "linux"
4343
publish_natives "macos"
4444

45+
echo "> Nexus manual upload..."
46+
curl -D - -X POST -u "${NEXUS_UPD_ID}:${NEXUS_UPD_PASS}" "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.github.spair"
47+
4548
echo "All modules and natives published successfully."

publish.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ext.configurePublishing = { packageName, packageDesc, packageVersion ->
1313
repositories {
1414
maven {
1515
name = 'MavenCentral'
16-
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
17-
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots'
16+
def releasesRepoUrl = 'https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2'
17+
def snapshotsRepoUrl = 'https://central.sonatype.com/repository/maven-snapshots'
1818
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
1919
credentials {
2020
username = System.getenv('NEXUS_UPD_ID')?.trim() ?: ''

0 commit comments

Comments
 (0)