Skip to content

Conversation

@jverbus
Copy link
Contributor

@jverbus jverbus commented Jul 3, 2025

The old OSSRH host (https://oss.sonatype.org/) is shutting down on 30 June 2025 – banner text:
“The OSSRH service will reach end‑of‑life on June 30th 2025. Learn more about how to transfer to the Central Publishing Portal here.”

Publishing jobs were failing because the legacy Nexus REST API now returns 403 Forbidden.
This commit moves us to Sonatype’s transitional OSSRH‑Staging API that front‑ends the new Central Publishing Portal:

  • gradle/release.gradle

    • sets nexusUrlhttps://ossrh‑staging-api.central.sonatype.com/service/local/
    • sets snapshotRepositoryUrlhttps://central.sonatype.com/repository/maven-snapshots/
    • switches credentials to Central Portal tokens (SONATYPE_PORTAL_TOKEN_USER / PWD).
  • .github/workflows/ci.yml

    • passes the new secret names to the “Release to Maven Central” step.

This retains the existing
publishToSonatype closeAndReleaseStagingRepository flow. Future work: migrate completely to the Portal’s native publish API and drop the staging bridge.

Additional drive‑by fix

  • isolation-forest-onnx/requirements.txt – bump onnxruntime → 1.22.0 (universal2 wheel) to restore Apple‑silicon test coverage.

The old OSSRH host (https://oss.sonatype.org/) is shutting down
**on 30 June 2025** – banner text:
“The OSSRH service will reach end‑of‑life on June 30th 2025.
Learn more about how to transfer to the Central Publishing Portal here.”

Publishing jobs were failing because the legacy Nexus REST API now
returns **403 Forbidden**.
This commit moves us to Sonatype’s transitional *OSSRH‑Staging API* that
front‑ends the new Central Publishing Portal:

* `gradle/release.gradle`
  * sets `nexusUrl` → `https://ossrh‑staging-api.central.sonatype.com/service/local/`
  * sets `snapshotRepositoryUrl` → `https://central.sonatype.com/repository/maven-snapshots/`
  * switches credentials to **Central Portal** tokens
    (`SONATYPE_PORTAL_TOKEN_USER / PWD`).

* `.github/workflows/ci.yml`
  * passes the new secret names to the “Release to Maven Central” step.

This retains the existing
`publishToSonatype closeAndReleaseStagingRepository` flow.
**Future work:** migrate completely to the Portal’s native publish API
and drop the staging bridge.

Additional drive‑by fix
-----------------------
* `isolation-forest-onnx/requirements.txt` – bump `onnxruntime` → **1.22.0**
  (universal2 wheel) to restore Apple‑silicon test coverage.
@jverbus jverbus merged commit 7c4bcf6 into master Jul 3, 2025
13 checks passed
@jverbus jverbus deleted the fix/ossrh-staging-migration branch July 3, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants