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

fix snapshot publishing #545

Merged
merged 5 commits into from Mar 24, 2023
Merged

fix snapshot publishing #545

merged 5 commits into from Mar 24, 2023

Conversation

gabrielittner
Copy link
Collaborator

@gabrielittner gabrielittner commented Mar 23, 2023

The stagingRepositoryId.isPresent check in publishingUrl will cause the Provider to be evaluated which then will make requireNotNull throw because stagingRepositoryId is expected to be null in this case. I moved the check into publishingUrl to resolve this.

Tested the solution manually by publishing to maven local and trying out both snapshot and release publishing in another project using that version. I need to find a way to have this as an automated test somehow.

Closes #544

@gabrielittner gabrielittner merged commit 22c014e into main Mar 24, 2023
6 checks passed
@gabrielittner gabrielittner deleted the snapshit-fix branch March 24, 2023 10:10
kyeotic added a commit to cashapp/tempest that referenced this pull request Jun 5, 2023
Gets a fix for SNAPSHOT builds [0.25.1](vanniktech/gradle-maven-publish-plugin#545)
kyeotic added a commit to cashapp/tempest that referenced this pull request Jun 5, 2023
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

Successfully merging this pull request may close these issues.

Updating to 0.25.0 fails when publishing SNAPSHOTs
2 participants