Skip to content

bump version not working on gradle #164

@DevLomoSE

Description

@DevLomoSE

Describe the bug
I've installed with:

npm install commit-and-tag-version

I've a package.json (to use other cli tools) and i've also created the script like

"release": "commit-and-tag-version"

and im using it like:

npm run release --packageFiles build.gradle --bumpFiles build.gradle

Current behavior
after run the command i can see changelog.md has been updated, the package.json has been updated with new version but build.gradle remains

version = '0.0.1-SNAPSHOT'

Expected behavior
build.gradle updated to

version = '1.2.1' (example)

Environment

  • commit-and-tag-version version(s): [^12.4.1]
  • Node/npm version: [node v20.11.1, npm 10.2.4]
  • OS: [OSX 23.5.0]

Possible Solution

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions