Strategy for creating a Git tag associated with a release.
| Type | Name and description |
|---|---|
groovy.lang.Closure |
generateMessageClosure taking a ReleaseVersion as an argument and returning a string to be used as the tag's message. |
groovy.lang.Closure<com.github.zafarkhaja.semver.Version> |
parseTagClosure taking a org.ajoberstar.grgit.Tag as an argument and returning a com.github.zafarkhaja.semver.Version if the tag could be parsed, else ' null' |
groovy.lang.Closure<java.lang.String> |
toTagStringClosure taking a version String as an argument and returning a string to be used as a tag name. |
| Constructor and description |
|---|
TagStrategy
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
maybeCreateTag(org.ajoberstar.grgit.Grgit grgit, ReleaseVersion version)If the release version specifies a tag should be created, create a tag using the provided Grgit instance and this instance's state to
determine the tag name and message. |
|
void |
setPrefixNameWithV(boolean prefix)Added for backwards compatibility. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Closure taking a ReleaseVersion as an argument and returning a string to be used as the tag's message.
Closure taking a org.ajoberstar.grgit.Tag as an argument and returning a com.github.zafarkhaja.semver.Version if the tag could be
parsed, else 'null'
Closure taking a version String as an argument and returning a string to be used as a tag name.
If the release version specifies a tag should be created, create a tag
using the provided Grgit instance and this instance's state to
determine the tag name and message.
grgit - the repository to create the tag inversion - the version to create the tag fornull if it wasn'tAdded for backwards compatibility.
prefix - whether or not to prefix the tag with a 'v'Groovy Documentation