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

Log an actionable warning/error when build is configured to CI publish snapshots to Sonatype Central #742

Open
armanbilge opened this issue Sep 6, 2024 · 0 comments

Comments

@armanbilge
Copy link
Member

Spinning out of #739 (comment).

When all of the following are true:

  1. tlUntaggedAreSnapshots == true
  2. sonatypeCredentialHost == "central.sonatype.com"
  3. tlCiReleaseBranches.size > 0

The build is "invalid" because it is not possible to publish -SNAPSHOTs to the Sonatype Central Host and thus the CI publish job will fail.

https://central.sonatype.org/faq/snapshot-releases/

We should catch this early and log a warning or error the build for a better UX. It just wasn't clear to me where exactly to check for this 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant