absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
388 stars 39 forks source link

feat(updater): add Gradle support #34

Closed bnas closed 2 years ago

bnas commented 2 years ago

A simple change to bring Gradle (both Groovy and Kotlin DSL format will work) support by adding the corresponding updater.

TimothyJones commented 2 years ago

Thanks for this! I’ll take a look over the weekend

TimothyJones commented 2 years ago

Thanks for this! Apologies for taking so long to get to it. This is nice work.

I'm a little nervous about whether the version regex will work for all gradle files, but since it will work for the majority of cases, and I can't see any pathological failures, I'm inclined to bring this in and correct it later if there are problems.

If you have a moment to contribute a test for the Groovy case too, that would be awesome. I don't want to block the release though, so I'll merge this and get it out now.