dave
04/19/2025, 9:47 AMPatrick Lannigan
04/19/2025, 12:59 PMPatrick Lannigan
04/19/2025, 1:02 PMdave
04/19/2025, 1:38 PMdave
04/19/2025, 2:25 PMThey explicitly say that they're won't be official gradle support until after the shutdown. So it seems to be a "pick from this collection of 15 options, good luck".Thinking more about it - this is a significant risk to the security of the JVM open source ecosystem. Let's imagine a scenario: 1. They shut off publishing of OSS libraries to the legacy OSSRH on 30th June 2. A high risk CVE is found in a project that currently uses the gradle plugin. 3. But there is no support in Gradle using the official plugin for ??? time after 30th June. 4. The project in question have not been lucky enough to trip over this announcement in the mere 90-odd days Which means that in order to actually get a fix out, the OSS team need to both fix it AND migrate to a new release pipeline. And let's be honest - it wasn't exactly easy the first time around (at least for us) to get it working.
Andrew O'Hara
04/19/2025, 6:10 PMdave
04/19/2025, 6:11 PMmbonnin
04/19/2025, 6:43 PMmbonnin
04/19/2025, 6:44 PMmbonnin
04/19/2025, 6:44 PMmbonnin
04/19/2025, 6:45 PMdave
04/19/2025, 6:46 PMmbonnin
04/19/2025, 6:46 PMdave
04/19/2025, 6:47 PMdave
04/19/2025, 6:47 PMmbonnin
04/19/2025, 6:47 PMmbonnin
04/19/2025, 6:48 PMmbonnin
04/19/2025, 6:49 PMI actually read it differently... it says "expect less support as we get to the deadline"... Not pastThat might be it. Want to write to central-support@sonatype.com to ask for clarification? They are usually quite responsive
dave
04/19/2025, 6:53 PMmbonnin
04/19/2025, 6:54 PMSami Eljabali
04/20/2025, 12:10 PMmbonnin
04/20/2025, 2:53 PMdave
04/20/2025, 2:58 PMdave
04/20/2025, 2:58 PMmbonnin
04/20/2025, 3:08 PMmbonnin
04/20/2025, 3:09 PMdave
04/20/2025, 3:17 PMSami Eljabali
04/20/2025, 3:48 PMmbonnin
04/20/2025, 3:54 PMSami Eljabali
04/20/2025, 3:55 PMmbonnin
04/20/2025, 3:58 PMdave
04/22/2025, 9:29 PMdave
04/22/2025, 9:29 PMHello David,
> There will be no official Gradle support (ie. Using the maven-publish plugin) for this new publishing mechanism as of the above date. Changing publishing mechanisms has been left at "please use one of these unofficial plugins" ([<https://central.sonatype.org/publish/publish-portal-gradle/](https://central.sonatype.org/publish/publish-portal-gradle/)>) without any examples or support being provided. It seems that Gradle is also not treating this is an important issue: [<https://github.com/gradle/gradle/issues/28120#issuecomment-1954266992](https://github.com/gradle/gradle/issues/28120#issuecomment-1954266992)>.
To clarify, this particular point is where there is some miscommunication. We agree with you that Gradle support is important to a large percentage of the community and that it would cause significant issues to leave Gradle publishers without a way forward (and that it would exacerbate security issues). To address this, we created the [OSSRH Staging API](<https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/>), which should allow you to point the built-in Gradle `maven-publish` plugin at a different URL, generate a Portal token instead of an OSSRH one, and add a single extra web request at the end of your build to indicate that your upload has completed and it should be propagated to the Portal (this is akin to manually logging in to the OSSRH UI and closing the repository or calling a dedicated Nexus Repository Manager 2 endpoint).
The reason for this decision is that we wanted to have a publishing solution that could temporarily accommodate all publishers (Gradle, Maven, SBT, Bazel, etc.) while we worked both internally and with external partners such as Gradle to develop high-quality plugins that meet each ecosystem's needs. By decoupling that effort from the end-of-life of Sonatype Nexus Repository 2, we hope to buy ourselves more time to make the migration to the Portal a smoother experience.
From the news article that you linked, we indicated
> Once OSSRH is sunset, we will have more roadmap capacity to begin working on a first-party Gradle plugin. We are working with Sonatype's legal department to streamline the process of open sourcing Central-related plugins. This discussion is currently focused on our Maven plugin, but we intend to launch a first-party Gradle plugin as open source from day one.
We hope that you understand that we treat this as seriously as you do and we understand that the Gradle community in particular is an increasingly significant portion of publishers to Maven Central.
> Tangentially, there are no download statistics at all available on the new central portal. This is a big problem for projects like ours which use the download statistics as a way of determining migration activities amongst other things.
We're actively working on implementing stats for the Portal, but we are not comfortable giving a public estimate of when they will be available due to the cross-team collaboration with Sonatype's data team, who have their own priorities and initiatives. If you have a need for statistics in the meantime, please contact support and we can arrange a temporary solution.
We would be interested in more information about what you mean by "determining migration activities" and what other ways the statistics are useful to your project. This would allow us to better understand the use-case(s) of statistics that any new solution would need to take into consideration,
Thank you,
The Central Team
mbonnin
04/22/2025, 10:57 PMmbonnin
04/22/2025, 10:59 PMOleg Nenashev
04/23/2025, 6:30 AMNeeme Praks
04/28/2025, 8:14 AM./gradlew -Dorg.gradle.daemon=false -Dkotlin.incremental=false clean publishToMavenCentral
It is based on @bnorm piecemeal project build system, I took that as an example and simplified it (maybe could be simplified even more). Piecemeal seems to release via a Github action.
You can see from the build file that both projects use gradle-maven-publish-plugin from vanniktech — it was quite simple to set up.Nick
05/09/2025, 2:18 AMmbonnin
05/09/2025, 8:03 AMopportunity to manually review my publication before releasing the repositoryYou can review the list of files in the central portal UI but not use it as a plain maven repo like you used to be able to with OSSRH
my login stopped workingGo to https://central.sonatype.com/api/auth/login and reset your password. Use that new password in OSSRH. This has worked for me in the past.
dave
05/09/2025, 8:06 AMNick
05/10/2025, 2:00 AMdave
05/10/2025, 4:46 AMNick
05/10/2025, 4:53 AMOleg Nenashev
05/12/2025, 10:00 AM#maven-central-publishing
channel on the Gradle Community Slack to coordinate the efforts: http://slack.gradle.org/. Everyone is welcome to join!Nick
05/13/2025, 5:04 AMThat is expected, you can only login in Central Portal after migration.
seems like you are locked out from OSSRH the minute you initiate migration. so this explains why my login no longer works 😔
Oleg Nenashev
05/13/2025, 5:51 AMdave
05/13/2025, 5:58 AMmbonnin
05/13/2025, 7:16 AMmbonnin
05/13/2025, 7:17 AMmbonnin
05/13/2025, 7:17 AM