| Package | Description |
|---|---|
| fr.brouillard.oss.jgitver | |
| fr.brouillard.oss.jgitver.impl |
| Modifier and Type | Field and Description |
|---|---|
static Version |
Version.DEFAULT_VERSION |
static Version |
Version.EMPTY_REPOSITORY_VERSION |
static Version |
Version.NOT_GIT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
Version |
Version.addQualifier(String qualifier)
Creates a new Version object from the current one, but append a new qualifier to it.
|
Version |
GitVersionCalculator.getVersionObject()
Calculates the version to use for the current git repository depending on the HEAD position.
|
Version |
Version.increasePatch()
Deprecated.
use
incrementPatch() |
Version |
Version.incrementMajor()
return a new Version object that is a copy of this one where the major number is incremented by one,
the minor and patch are set to 0.
|
Version |
Version.incrementMinor()
return a new Version object that is a copy of this one where the minor number is incremented by one ; patch version is set to 0.
|
Version |
Version.incrementPatch()
return a new Version object that is a copy of this one where the patch number is incremented by one.
|
Version |
Version.noQualifier()
Creates a new Version object from the current one, but removes all qualifiers from it.
|
static Version |
Version.parse(String versionAsString)
Creates a
Version object by parsing the given string. |
Version |
Version.removeQualifier(String qualifier)
Creates a new Version object from the current one, but removes the given qualifier from it if it exists.
|
| Constructor and Description |
|---|
Version(Version other) |
| Modifier and Type | Method and Description |
|---|---|
abstract Version |
VersionStrategy.build(Commit head,
List<Commit> parents)
Build a version using the given information extracted from the git repository.
|
Version |
MavenVersionStrategy.build(Commit head,
List<Commit> parentsWithTags) |
Version |
ConfigurableVersionStrategy.build(Commit head,
List<Commit> parents) |
protected Version |
VersionStrategy.enhanceVersionWithBranch(Version baseVersion,
String branch) |
| Modifier and Type | Method and Description |
|---|---|
protected Version |
VersionStrategy.enhanceVersionWithBranch(Version baseVersion,
String branch) |
Copyright © 2016–2018 Matthieu Brouillard. All rights reserved.