Sample strategies that infer the pre-release component of a version.
Type | Name and description |
---|---|
static PartialSemVerStrategy |
COUNT_COMMITS_SINCE_ANY Append the count of commits since the nearest any to the so far inferred pre-release component. |
static PartialSemVerStrategy |
COUNT_INCREMENTED If the nearest any's pre-release component starts with the so far inferred pre-release component, increment the count of the nearest any and append it to the so far inferred pre-release component. |
static PartialSemVerStrategy |
NONE Do not modify the pre-release component. |
static PartialSemVerStrategy |
SHOW_UNCOMMITTED If the repo has uncommitted changes append "uncommitted" to the so far inferred pre-release component. |
static PartialSemVerStrategy |
STAGE_FIXED Sets the pre-release component to the value of SemVerStrategyState#stageFromProp#stageFromProp. |
static PartialSemVerStrategy |
STAGE_FLOAT If the value of SemVerStrategyState#stageFromProp#stageFromProp has a higher or the same precedence than the nearest any's pre-release component, set the pre-release component to SemVerStrategyState#scopeFromProp#scopeFromProp. |
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() |
Append the count of commits since the nearest any to the so far inferred pre-release component.
If the nearest any's pre-release component starts with the so far inferred pre-release component, increment the count of the nearest any and append it to the so far inferred pre-release component. Otherwise append 1 to the so far inferred pre-release component.
Do not modify the pre-release component.
If the repo has uncommitted changes append "uncommitted" to the so far inferred pre-release component.
Sets the pre-release component to the value of SemVerStrategyState#stageFromProp#stageFromProp.
If the value of SemVerStrategyState#stageFromProp#stageFromProp has a higher or the same precedence than the nearest any's pre-release component, set the pre-release component to SemVerStrategyState#scopeFromProp#scopeFromProp. If not, append the SemVerStrategyState#scopeFromProp#scopeFromProp to the nearest any's pre-release.