Skip to content

Commit b05bb22

Browse files
srprashliustve
andauthored
Update Sonatype publishing URL to Central Portal (#1090)
It has been announced that the Sonatype OSSRH will reach EOL soon: https://central.sonatype.org/news/20250326_ossrh_sunset/ We currently publish the ADOT Java and the UDP exporter to Sonatype and the migration to Central Portal is recommended. Sonatype publishing URL updated as per [this sonatype doc](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration) and the internal recommendation. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Steve Liu <liustve@amazon.com>
1 parent b974c58 commit b05bb22

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ nebulaRelease {
4040
nexusPublishing {
4141
repositories {
4242
sonatype {
43-
nexusUrl.set(uri("https://aws.oss.sonatype.org/service/local/"))
44-
snapshotRepositoryUrl.set(uri("https://aws.oss.sonatype.org/content/repositories/snapshots/"))
43+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
44+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
4545
username.set(System.getenv("PUBLISH_TOKEN_USERNAME"))
4646
password.set(System.getenv("PUBLISH_TOKEN_PASSWORD"))
4747
}

exporters/aws-distro-opentelemetry-xray-udp-span-exporter/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ tasks.create("printVersion") {
101101
nexusPublishing {
102102
repositories {
103103
sonatype {
104-
nexusUrl.set(uri("https://aws.oss.sonatype.org/service/local/"))
105-
snapshotRepositoryUrl.set(uri("https://aws.oss.sonatype.org/content/repositories/snapshots/"))
104+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
105+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
106106
username.set(System.getenv("PUBLISH_TOKEN_USERNAME"))
107107
password.set(System.getenv("PUBLISH_TOKEN_PASSWORD"))
108108
}

exporters/aws-distro-opentelemetry-xray-udp-span-exporter/settings.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencyResolutionManagement {
66
mavenLocal()
77

88
maven {
9-
setUrl("https://oss.sonatype.org/content/repositories/snapshots")
9+
setUrl("https://central.sonatype.com/repository/maven-snapshots/")
1010
}
1111
}
1212
}
@@ -16,4 +16,4 @@ pluginManagement {
1616
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
1717
id("nebula.release") version "18.0.6"
1818
}
19-
}
19+
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencyResolutionManagement {
3333
mavenLocal()
3434

3535
maven {
36-
setUrl("https://oss.sonatype.org/content/repositories/snapshots")
36+
setUrl("https://central.sonatype.com/repository/maven-snapshots/")
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)