Sonatype have announced the End-of-Life Sunset Date for OSSRH, aka oss.sonatype.org: 30th June 2025. All users will need to migrate to the Central Publisher Portal.
Support for the new API
gha-scala-library-release-workflow uses the sbt-sonatype plugin to upload to Sonatype - with version v3.11.0 this has apparently gained support for new Sonatype Central API :
Necessary steps
|
echo 'addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")' > project/plugins.sbt |
Gradle
See:
https://central.sonatype.com/publishing/namespaces
Sonatype have announced the End-of-Life Sunset Date for OSSRH, aka
oss.sonatype.org: 30th June 2025. All users will need to migrate to the Central Publisher Portal.Support for the new API
gha-scala-library-release-workflowuses thesbt-sonatypeplugin to upload to Sonatype - with version v3.11.0 this has apparently gained support for new Sonatype Central API :Necessary steps
Use updated
sbt-sonatype(that has support for Sonatype's Central Portal API) #58Migrate Namespaceat https://central.sonatype.com/publishing/namespaces is now possible, checked at 22nd May 2025. The migration tool now says "Migration of your OSSRH (oss.sonatype.org) namespace com.gu and related namespace(s) com.gu.play-googleauth to the Central Portal is possible" - we just need to decide when to do this:Update the default
SONATYPE_CREDENTIAL_HOSTused by projects tocentral.sonatype.comSwitch to usingcentral.sonatype.comby default #63gha-scala-library-release-workflow/.github/workflows/reusable-release.yml
Lines 18 to 22 in abe60aa
Credentials
Generate User Tokenat https://central.sonatype.com/accountAUTOMATED_MAVEN_RELEASE_SONATYPE_TOKENorganisation secret using the new token (in the formatusername:password)Tag and release the updated workflow, update the
v1taggha-scala-library-release-workflow/.github/workflows/reusable-release.yml
Line 413 in abe60aa
Gradle
See:
https://central.sonatype.com/publishing/namespaces