public interface IVersionInfo
Provides version information for a runtime dependency or application.
-
Method Summary
Modifier and TypeMethodDescriptionThe time the subject was last built.The current git branch.The closest tag in the git commit history.The last git commit hash.The git repository URL used to retrieve the branch.getName()The subject's name.The subject's version.
-
Method Details
-
getName
The subject's name.- Returns:
- the name
-
getVersion
The subject's version.- Returns:
- the version
-
getBuildTimestamp
The time the subject was last built.- Returns:
- the build time
-
getGitOriginUrl
The git repository URL used to retrieve the branch.- Returns:
- the git repository URL
-
getGitCommit
The last git commit hash.- Returns:
- the commit hash
-
getGitBranch
The current git branch.- Returns:
- the git branch
-
getGitClosestTag
The closest tag in the git commit history.- Returns:
- a tag name
-