sbt-ci-release
sbt-ci-release copied to clipboard
Support to publish snapshots to Central Sonatype
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/
CC https://github.com/xerial/sbt-sonatype/issues/564
CC @SethTisue @eed3si9n
@chitralverma pull request (to sbt-sonatype) welcome
Isn't this the first question on FAQ? (I am asking for reals)
import xerial.sbt.Sonatype.sonatypeCentralHost
ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
The error we get when trying to publish snapshots to Sonatype Central as-is is from sbt-ci-release itself though:
https://github.com/sbt/sbt-ci-release/blob/5473b647da651e6dd14b9dd5d8d73b51d6ccee71/plugin/src/main/scala/com/geirsson/CiReleasePlugin.scala#L172-L177
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
@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 https://github.com/xerial/sbt-sonatype/issues/564
I'm not sure if this is fully completed yet - see my comment here: https://github.com/sbt/sbt-ci-release/pull/365/files#r2094559720
My bad. I don't really use snapshot publishing so it didn't occur to me that they don't have tags.