Strategy for creating a Git tag associated with a release.
Type | Name and description |
---|---|
groovy.lang.Closure |
generateMessage Closure taking a ReleaseVersion as an argument and returning a string to be used as the tag's message. |
groovy.lang.Closure<Version> |
parseTag Closure taking a Tag as an argument and returning a Version if the tag could be parsed, else ' null ' |
groovy.lang.Closure<java.lang.String> |
toTagString Closure taking a version String as an argument and returning a string to be used as a tag name. |
Constructor and description |
---|
TagStrategy
() |
Type | Name and description |
---|---|
java.lang.String |
maybeCreateTag(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(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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 Tag as an argument and returning a 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.
null
if it wasn'tgrgit
- the repository to create the tag inversion
- the version to create the tag forAdded for backwards compatibility.
prefix
- whether or not to prefix the tag with a 'v'Groovy Documentation