I'm using gradle-release-plugin with jenkins and I want use
gradle release -Prelease.useAutomaticVersion=true
to automatic increase version.
But this automatic move the ".patch" number (assume major.minor.patch
version) and I'm trying to move the ".minor" number.
For example if release 1.3.17 then newVersion 1.4.0-SNAPSHOT
I would change this automatic replace without use the
release.releaseVersion
and release.newVersion
It could be done with the plugin configuration versionPatterns
?
Maybe using this pattern /[.]*\.(\d+)\.(\d+)[.]*/
?