Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/repository-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ Same settings as above for `main`, except:
* `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
* `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
* `SONATYPE_KEY` - owned by [@breedx-splk](https://github.com/breedx-splk)
* `SONATYPE_USER` - owned by [@breedx-splk](https://github.com/breedx-splk)
* `SONATYPE_USER` - owned by [@breedx-splk](https://github.com/breedx-splk)

Note: `SONATYPE_KEY` and `SONATYPE_USER` were regenerated and replaced
on June 6th, 2025 for the [Sonatype OSSRH migration](https://central.sonatype.org/news/20250326_ossrh_sunset/).
13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ subprojects {
apply(plugin = "otel.spotless-conventions")
}

nexusPublishing.repositories {
sonatype {
username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_KEY"))
nexusPublishing {
repositories {
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_KEY"))
}
}
}