This configures the gradle-publish plugin to publish to sonatype central, because OSSRH is now EOL'd.
Note: we might want to switch to using jreleaser in the future. From Sonatype's docs:
The Portal OSSRH Staging API is a partial reimplementation of the OSSRH / Nexus Repository Manager 2 Staging APIs. The intent of this service is to enable publishers who are using existing plugins to have a smooth migration to the Central Publisher Portal. We hope that over time plugins will adopt the Portal API rather than rely on this service.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/1121
**Author:** [@bioball](https://github.com/bioball)
**Created:** 7/11/2025
**Status:** ✅ Merged
**Merged:** 7/11/2025
**Merged by:** [@bioball](https://github.com/bioball)
**Base:** `main` ← **Head:** `switch-sonatype-publishing`
---
### 📝 Commits (1)
- [`e4f5d11`](https://github.com/apple/pkl/commit/e4f5d119c4f0ffbb43fb37f6d6192ea619361b91) Switch publishing to sonatype central
### 📊 Changes
**1 file changed** (+2 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `build.gradle.kts` (+2 -2)
</details>
### 📄 Description
This configures the gradle-publish plugin to publish to sonatype central, because OSSRH is now EOL'd.
Note: we might want to switch to using jreleaser in the future. From [Sonatype's docs](https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#getting-started-for-maven-api-like-plugins):
> The Portal OSSRH Staging API is a partial reimplementation of the OSSRH / Nexus Repository Manager 2 Staging APIs. The intent of this service is to enable publishers who are using existing plugins to have a smooth migration to the Central Publisher Portal. We hope that over time plugins will adopt the [Portal API](https://central.sonatype.org/publish/publish-portal-api/) rather than rely on this service.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1121
Author: @bioball
Created: 7/11/2025
Status: ✅ Merged
Merged: 7/11/2025
Merged by: @bioball
Base:
main← Head:switch-sonatype-publishing📝 Commits (1)
e4f5d11Switch publishing to sonatype central📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
build.gradle.kts(+2 -2)📄 Description
This configures the gradle-publish plugin to publish to sonatype central, because OSSRH is now EOL'd.
Note: we might want to switch to using jreleaser in the future. From Sonatype's docs:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.