Skip to content

Commit f05df59

Browse files
committed
Update SONATYPE publishing repository url
This updates the SONATYPE url for the new staging API that serves as a shim. https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#getting-started-for-maven-api-like-plugins
1 parent 4d81916 commit f05df59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ version = '1.0.0-SNAPSHOT'
3232
repositories {
3333
mavenCentral()
3434
maven {
35-
url "https://oss.sonatype.org/content/repositories/snapshots"
35+
url "https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots"
3636
}
3737
mavenLocal()
3838
}
@@ -234,8 +234,8 @@ publishing {
234234

235235
repositories {
236236
maven {
237-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
238-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
237+
def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
238+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
239239
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
240240
credentials {
241241
username System.getenv('SONATYPE_CENTRAL_USERNAME')

ci/upload_to_maven.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "$GPG_SECRET_KEYS_ENC" | base64 --decode > "$GPG_KEY_LOCATION"
88
export PROJECT_VERSION="$(./gradlew properties -q | grep "^version: " | awk '{print $2}')"
99
echo "\$PROJECT_VERSION: $PROJECT_VERSION" >&2
1010
# Upload only snapshots to Sonatype OSS so it can make its way to Maven Central
11-
# https://oss.sonatype.org/content/repositories/snapshots/io/tiledb/tiledb-cloud-java/
11+
# https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/io/tiledb/tiledb-cloud-java/
1212
./gradlew publishMavenJavaPublicationToMavenRepository
1313

1414
# Only non-snapshot can be pushed as Maven releases

0 commit comments

Comments
 (0)