Skip to content
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

Support to publish snapshots to Central Sonatype #344

Open
chitralverma opened this issue Jan 15, 2025 · 7 comments
Open

Support to publish snapshots to Central Sonatype #344

chitralverma opened this issue Jan 15, 2025 · 7 comments

Comments

@chitralverma
Copy link

Since snapshots are now supported by central, can you please add support for publishing snapshots to central ?
currently, the plugin fails with -
Sonatype Central does not accept snapshots, only official releases. Aborting release.

https://central.sonatype.org/publish/publish-portal-snapshots/

@chitralverma
Copy link
Author

CC xerial/sbt-sonatype#564

@chitralverma
Copy link
Author

CC @SethTisue @eed3si9n

@SethTisue
Copy link
Member

SethTisue commented Jan 19, 2025

@chitralverma pull request (to sbt-sonatype) welcome

@eed3si9n
Copy link
Member

Isn't this the first question on FAQ? (I am asking for reals)

@eed3si9n
Copy link
Member

import xerial.sbt.Sonatype.sonatypeCentralHost

ThisBuild / sonatypeCredentialHost := sonatypeCentralHost

@PapyChacal
Copy link

PapyChacal commented Jan 20, 2025

The error we get when trying to publish snapshots to Sonatype Central as-is is from sbt-ci-release itself though:

if (shouldDeployToSonatypeCentral) {
if (isSnapshot) {
println(
s"Sonatype Central does not accept snapshots, only official releases. Aborting release."
)
currentState

Do you then think it might be enough to just remove this check and add logic to publish, and the lower-level publication logic is already implemented by sbt-sonatype?

I might have time to try a few things soon

@chitralverma
Copy link
Author

chitralverma commented Jan 20, 2025

@PapyChacal i think changes are required in sbt-sonatype as well because of the repo URL and there are some restrictions there as well.

thats why i raised xerial/sbt-sonatype#564

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

No branches or pull requests

4 participants