Skip to content

Commit b38efb0

Browse files
authored
Migrate to Maven Central Publisher Portal (#1055)
## Problem Sonatype is [deprecating the OSSRH and the Nexus Repository Manager v2](https://central.sonatype.org/news/20250326_ossrh_sunset/) at the end of the month ## Solution Migrate to Sonatype's Central Publisher Portal by way of the [Portal OSSRH Staging API](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#get-to-manualsearchrepositories) # WORDS OF WARNING * **This is a one-way door**. We can't go back once credentials are generated * We will need to generate new credentials and add them to internal Secrets (merge this PR in conjunction with that one) * We need to see if we can do a metric definition deployment to ensure nothing breaks and that there are no additional steps required (specifically noting the approval/publish workflow in the [Central Publisher Portal intro](https://central.sonatype.org/publish/publish-portal-guide/#component-validation)) ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a0f5c9f commit b38efb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

telemetry/jetbrains/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ nexusPublishing {
170170

171171
repositories {
172172
sonatype {
173-
nexusUrl.set(uri("https://aws.oss.sonatype.org/service/local/"))
174-
snapshotRepositoryUrl.set(uri("https://aws.oss.sonatype.org/content/repositories/snapshots/"))
173+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
174+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
175175
username.set(project.findProperty("ossrhUsername") as? String)
176176
password.set(project.findProperty("ossrhPassword") as? String)
177177

0 commit comments

Comments
 (0)