gradle release plugin automatic version pattern
Auto answer...
After some research and tests I could move the minor
version number (assume major.minor.patch
version) with the param release.useAutomaticVersion=true
Just need to configure the versionPatterns
plugin parameter with this closure:
versionPatterns = [ // Increments minor number: "2.5.17-SNAPSHOT" => "2.6.0-SNAPSHOT" /[.]*\.(\d+)\.(\d+)[.]*/: { Matcher m, Project p -> m.replaceAll(".${(m[0][1] as int) + 1}.0") } ]
Really it isn't the only change needed in the build.gradle, this closure code depends to add this import previously:
import java.util.regex.Matcher