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

Getting Changelog for a version fails when running through gradle wrapper #188

Closed
anikrajc opened this issue Jul 26, 2023 · 1 comment
Closed
Labels
bug Something isn't working
Milestone

Comments

@anikrajc
Copy link

Describe the bug
When running the following command,

 ./gradlew getChangelog -q --no-header --no-summary --version=1.0.1

The command fails with Gradle Wrapper help menu

Command-line option '--version' does not take an argument.

USAGE: gradlew [option...] [task...]

To Reproduce
Using 2.1.2 version of the library on a kotlin multiplatform project. You can reproduce this with any gradle project and running the command through the terminal.

Expected behavior
The changelog of the given version should have been displayed

Environment:

  • OS: macOS
  • Gradle Changelog Plugin Version 2.1.2
  • Gradle Version 7.6.1
@anikrajc anikrajc added the bug Something isn't working label Jul 26, 2023
hsz added a commit that referenced this issue Aug 28, 2023
@hsz
Copy link
Member

hsz commented Aug 28, 2023

Thanks for reporting, Anik.
Turns out, --version option conflicts with Gradle's one. I've renamed it to --project-version.

The fix will be available with the next release.

@hsz hsz closed this as completed Aug 28, 2023
@hsz hsz added this to the next milestone Aug 28, 2023
hsz added a commit that referenced this issue Aug 28, 2023
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

2 participants