class RebuildVersionStrategy
Strategy that infers the version based on the tag on the current HEAD.
| Modifiers | Name | Description |
|---|---|---|
static RebuildVersionStrategy |
INSTANCE |
| Type | Name and description |
|---|---|
java.lang.String |
getName() |
ReleaseVersion |
infer(Project project, Grgit grgit)Infers the version based on the version tag on the current HEAD with the highest precendence. |
boolean |
selector(Project project, Grgit grgit)Determines whether this strategy should be used to infer the version. |
| 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() |
Infers the version based on the version tag on the current HEAD with the highest precendence.
Determines whether this strategy should be used to infer the version.
false, if any project properties starting with "release." are set.false, if there aren't any tags on the current HEAD that can be parsed as a version.true, otherwise.