| Package | Description |
|---|---|
| fr.brouillard.oss.jgitver | |
| fr.brouillard.oss.jgitver.impl | |
| fr.brouillard.oss.jgitver.impl.pattern |
| 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()
Return the version to use for the current git repository depending on the HEAD position.
|
Version |
GitVersionCalculator.getVersionObject(boolean forceComputation)
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Version.compareTo(Version o) |
| 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 |
PatternVersionStrategy.build(Commit head,
List<Commit> parents) |
Version |
MavenVersionStrategy.build(Commit head,
List<Commit> parents) |
Version |
ConfigurableVersionStrategy.build(Commit head,
List<Commit> parents) |
protected Version |
VersionStrategy.enhanceVersionWithBranch(Version baseVersion,
String branch) |
protected Version |
VersionStrategy.getBaseVersionAndRegisterMetadata(Commit base,
org.eclipse.jgit.lib.Ref tagToUse) |
Version |
GitVersionCalculatorImpl.getVersionObject() |
Version |
GitVersionCalculatorImpl.getVersionObject(boolean forceComputation) |
protected Version |
VersionStrategy.tagToVersion(String tagName) |
Version |
VersionStrategy.versionFromTag(org.eclipse.jgit.lib.Ref ref)
Computes a
Version object from the given tag reference using the strategy configuration. |
| Modifier and Type | Method and Description |
|---|---|
protected Version |
VersionStrategy.enhanceVersionWithBranch(Version baseVersion,
String branch) |
| Constructor and Description |
|---|
VersionPatternGrammarDefinition(Version version,
java.util.function.Function<String,Optional<String>> env,
java.util.function.Function<String,Optional<String>> sys,
java.util.function.Function<Metadatas,Optional<String>> meta)
Constructor is given the necessary elements to transform the recognized elements.
|
Copyright © 2016–2019 Matthieu Brouillard. All rights reserved.