public class VersionInformation extends Object
Modifier and Type | Field and Description |
---|---|
String |
closestTag
Last tag, including light-weight tags
|
String |
commitHash
The git commit hash
|
int |
commitsSinceClosestTag
Number of commits since last tag
|
String |
gitDescribe
Output of git describe, $(LAST_TAG)-$(COMMITS_SINCE_LAST_TAG)-$(COMMIT_HASH)
|
String |
version
Version from maven pom.xml
|
Modifier and Type | Method and Description |
---|---|
static VersionInformation |
getInstance() |
static String |
getVersionFromPackage() |
public final String version
public final String commitHash
public final String closestTag
public final int commitsSinceClosestTag
public final String gitDescribe
public static VersionInformation getInstance()
public static String getVersionFromPackage() throws RuntimeException
RuntimeException
Copyright © 2019. All rights reserved.