-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish to Maven Central with new interface #465
Comments
I've the same issue. I cannot publish to |
I wasn't aware of this change: https://central.sonatype.org/register/central-portal/#switching-to-ossrh-during-portal-early-access. In fact, I don't know much about this change and I don't have an account on the new http://central.sonatype.org/ to test it. It seems Sonatype has renewed almost all steps to register new domains, so I also need to relearn everything from scratch, including its API and token management 😓 |
If you can identify what needs to be fixed in sbt-sonatype and highlight the necessary code changes (for example, a pull request), I would appreciate it. I can create a new release soon. |
Almost same issue here (encountered by using sbt-typelevel). Sonatype says they provide new API for publishing artifacts. We may use new endpoint, new API. I'll check code anyway :) |
It looks like a big change and more automation has been added on the sonatype side 😮 https://central.sonatype.org/publish/publish-portal-api/ |
At first glance, it looks like a huge improvement. I'd like to support the new https://central.sonatype.com/ API in sbt-sonatype 4.x |
According to the documentation, it is no longer possible to create a new account on the old system, so Scala library author who recently created an account on the new system are effectively unable to publish libraries (except hand-made publish process). |
See the following PR for an initial implementation that offers Sonatype Central support: #474 |
For users needing immediate support to publish libraries, the following is a temporary workaround:
sbt "compile; publishLocal"
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "<package-id>")
import xerial.sbt.Sonatype.sonatypeCentralHost
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
ThisBuild / version := "<target version>"
export SONATYPE_USERNAME="<sonatype_username>"
export SONATYPE_PASSWORD="<sonatype_password>"
|
Heyo! Really happy to see that support for the new interface is moving along. Are there any info that can be shared regarding when we can expect a release candidate with this change included? Like was mentioned here #474 |
I was in contact with Taro and he needed some extra time to review this, with one or two further considerations around user flow and naming, which are still TBD. @xerial , could we still get a release commit out in the current form, with a target date for a full 4.0.0 release in a month or two? That way we can gather user feedback while still making clear that setting names, etc. are open to change. |
@xerial , I am confused about this new release, as I'd thought that this was permanently blocked and I instead invested effort to create a separate plugin here - https://github.com/lumidion/sbt-sonatype-central with a maintenance and feature roadmap. This plugin is now in its first release...as of a few minutes before #474 was merged. The next step to make this feature widely available is to integrate it into |
Reading through this issue, a reader might assume that this is not fixed. As far as I can tell @xerial, this should be closed.
|
@BillyAutrey Thanks for the heads-up. I haven't followed this discussion thread for a while 😅. Let's close this issue. @Andrapyre's comment will be a bit more complicated (due to my capacity and technical difficulties like #548), so it should be discussed elsewhere. |
Hello,
I am asking for help. Since it seems like, that the old Jira from Sonatype will be shutdown and only https://central.sonatype.com will be used. I wanted to ask if I can get currently the plugin running with an user token created from the new interface and how I should configure it.
When I use s01.oss.sonatype.org as described, I get an error for to many redirects.
The text was updated successfully, but these errors were encountered: