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

--prerelease does not work on build.gradle #194

Open
mnorlin opened this issue Oct 12, 2024 · 0 comments
Open

--prerelease does not work on build.gradle #194

mnorlin opened this issue Oct 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mnorlin
Copy link

mnorlin commented Oct 12, 2024

Describe the bug
The version is not updated in build.gradle when using the --prerelease flag.

Current behavior

When executing

commit-and-tag-version --packageFiles build.gradle --bumpFiles build.gradle --prerelease SNAPSHOT

the version inside build.gradle is not updated.

The terminal outputs

Failed to read the version field in your gradle file - is it present?
✔ outputting changes to CHANGELOG.md
✔ committing CHANGELOG.md
✔ tagging release v0.0.4-SNAPSHOT.0
ℹ Run `git push --follow-tags origin main` to publish

When running the same command without --prerelease

commit-and-tag-version --packageFiles build.gradle --bumpFiles build.gradle

The terminal outputs

✔ bumping version in build.gradle from 0.0.3 to 0.0.4
✔ outputting changes to CHANGELOG.md
✔ committing build.gradle and CHANGELOG.md
✔ tagging release v0.0.4
ℹ Run `git push --follow-tags origin main` to publish

And the version is correctly updated in build.gradle

Expected behavior
Before the command:

version = "0.0.3"

after the command:

version = "0.0.4-SNAPSHOT.0"

Environment

  • commit-and-tag-version version(s): 12.5.0
  • Node/npm version: v20.15.0
  • OS: MacOS 14.5
@mnorlin mnorlin added the bug Something isn't working label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant