Skip to content

Commit 938f294

Browse files
chore: migrate to Sonatype Portal OSSRH Staging API
according to https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/
1 parent 967456c commit 938f294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepl-java/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ publishing {
6767
val mavenUploadUsername: String? by project
6868
val mavenUploadPassword: String? by project
6969
name = "MavenCentral"
70-
val releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
71-
val snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
70+
val releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
71+
val snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
7272
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
7373
credentials {
7474
username = mavenUploadUsername

0 commit comments

Comments
 (0)