jgitver gradle plugin new DSL features
Yesterday I released version 0.5.0
of jgitver gradle plugin bringing a new DSL functionnality to control branch policies of jgitver.
For example, given a project where people work in feature branch and where releases are performed from master branch, the following gradle configuration would be a perfect match:
jgitver {
policy {
pattern = '(master)'
transformations = ['IGNORE']
}
policy {
pattern = 'feature_(.*)'
transformations = ['REMOVE_UNEXPECTED_CHARS', 'LOWERCASE_EN']
}
}
Working in a branch called feature_Security_Addon
could lead in having project version computed like 1.2.1-3-securityaddon
.
In above DSL extension, each policy
closure expects 2 parameters:
- pattern: a regexp with capturing group
- transformations: an array of BranchNameTransformations names to be applied
Retrieve configuration capabilities on the Configuration section of the readme.
Like never, jgitver needs your support, if you enjoy what it does please: