public class GitFlowVersionInfo
extends org.apache.maven.shared.release.versions.DefaultVersionInfo
VersionInfo implementation. Adds few convenient methods.| Constructor and Description |
|---|
GitFlowVersionInfo(String version) |
| Modifier and Type | Method and Description |
|---|---|
GitFlowVersionInfo |
digitsVersionInfo()
Returns a new GitFlowVersionInfo that holds only digits in the version.
|
String |
featureVersion(String featureName)
Gets version with appended feature name.
|
String |
hotfixVersion(boolean preserveSnapshot)
Gets next hotfix version.
|
static boolean |
isValidVersion(String version)
Validates version.
|
String |
nextSnapshotVersion()
Gets next SNAPSHOT version.
|
String |
nextSnapshotVersion(Integer index)
Gets next SNAPSHOT version.
|
compareTo, equals, getAnnotation, getAnnotationRevision, getBuildSpecifier, getDigits, getNextVersion, getReleaseVersionString, getSnapshotVersionString, getVersionString, hashCode, incrementVersionString, isSnapshot, joinDigitString, toStringpublic GitFlowVersionInfo(String version) throws org.apache.maven.shared.release.versions.VersionParseException
org.apache.maven.shared.release.versions.VersionParseExceptionpublic GitFlowVersionInfo digitsVersionInfo() throws org.apache.maven.shared.release.versions.VersionParseException
org.apache.maven.shared.release.versions.VersionParseExceptionpublic static boolean isValidVersion(String version)
version - Version to validate.true when version is valid, false
otherwise.public String nextSnapshotVersion()
public String nextSnapshotVersion(Integer index)
null or not valid
then it delegates to DefaultVersionInfo.getNextVersion() method.index - Which part of version to increment.public String featureVersion(String featureName)
featureName - Feature name to append.public String hotfixVersion(boolean preserveSnapshot)
preserveSnapshot - Whether to preserve SNAPSHOT in the version.Copyright © 2014–2019. All rights reserved.