Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V 

A

addQualifier(String) - Method in class fr.brouillard.oss.jgitver.Version
Creates a new Version object from the current one, but append a new qualifier to it.
appliesOn(String) - Method in class fr.brouillard.oss.jgitver.BranchingPolicy
 
apply(String) - Method in enum fr.brouillard.oss.jgitver.BranchingPolicy.BranchNameTransformations
 
apply(T) - Method in interface fr.brouillard.oss.jgitver.impl.Lambdas.CheckedFunction
 
apply(Optional<String>) - Method in class fr.brouillard.oss.jgitver.impl.pattern.Prefix
 
as(Predicate<T>) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Returns the given argument as a predicate, usefull when called with method reference.
as(Consumer<T>) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Returns the given argument as a consumer, usefull when called with method reference.
as(Supplier<T>) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Returns the given argument as a supplier, usefull when called with method reference.
as(Function<T, R>) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Returns the given argument as a function, usefull when called with method reference.
AutoSeparatorProvider - Class in fr.brouillard.oss.jgitver.impl.pattern
Computes the separator to use for a semver compatible version pattern.
AutoSeparatorProvider() - Constructor for class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
 

B

BranchingPolicy - Class in fr.brouillard.oss.jgitver
 
BranchingPolicy(String) - Constructor for class fr.brouillard.oss.jgitver.BranchingPolicy
Builds a BranchingPolicy object using the given pattern as a recognition Pattern.
BranchingPolicy(String, List<String>) - Constructor for class fr.brouillard.oss.jgitver.BranchingPolicy
Builds a BranchingPolicy object using the given pattern as a recognition Patternand the given branches transformations
BranchingPolicy.BranchNameTransformations - Enum in fr.brouillard.oss.jgitver
 
branchQualifier(String) - Method in class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
Builds an optional qualifier from the given branch name.
build(File) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculatorBuilder
 
build(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
build(File) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImplBuilder
 
build(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.MavenVersionStrategy
 
build() - Method in class fr.brouillard.oss.jgitver.impl.pattern.VersionPatternGrammarDefinition
 
build(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
 
build(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
Build a version using the given information extracted from the git repository.

C

close() - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
 
close() - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
close() - Method in class fr.brouillard.oss.jgitver.impl.TagDateExtractor
 
Commit - Class in fr.brouillard.oss.jgitver.impl
Container object for a git node involved in version calculation.
Commit(ObjectId, int, List<Ref>, List<Ref>) - Constructor for class fr.brouillard.oss.jgitver.impl.Commit
Creates commit object using the given informations.
compareTo(Version) - Method in class fr.brouillard.oss.jgitver.Version
 
computeTagType(Ref, Ref) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
ConfigurableVersionStrategy - Class in fr.brouillard.oss.jgitver.impl
 
ConfigurableVersionStrategy(VersionNamingConfiguration, Repository, Git, MetadataRegistrar) - Constructor for class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
create(ObjectId, Repository, int) - Static method in interface fr.brouillard.oss.jgitver.impl.DistanceCalculator
Creates a reusable DistanceCalculator on the given repository for the given start commit.
create(ObjectId, Repository) - Static method in interface fr.brouillard.oss.jgitver.impl.DistanceCalculator
Creates a reusable DistanceCalculator on the given repository for the given start commit, uses Integer.MAX_VALUE as the maximum depth distance.
currentSeparator() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
Retrieve the current separator that should be used.

D

dateOfRef(Ref) - Method in class fr.brouillard.oss.jgitver.impl.TagDateExtractor
Retrieve the date of the given tag.
dateOfTagObjectId(ObjectId) - Method in class fr.brouillard.oss.jgitver.impl.TagDateExtractor
Retrieve the date of the given tag.
DEFAULT_FALLBACK - Static variable in class fr.brouillard.oss.jgitver.BranchingPolicy
Default branching policy that sanitizes branch names as per jgtiver <= 0.2.0-alpha1;
DEFAULT_FIND_TAG_VERSION_PATTERN - Static variable in class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
 
DEFAULT_TAG_VERSION_PATTERN - Static variable in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
 
DEFAULT_VERSION - Static variable in class fr.brouillard.oss.jgitver.Version
 
DEFAULT_VERSION_PATTERN - Static variable in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
 
DistanceCalculator - Interface in fr.brouillard.oss.jgitver.impl
Allow to compute git depth, in term of commit distance between several commits.
DistanceCalculator.DepthWalkDistanceCalculator - Class in fr.brouillard.oss.jgitver.impl
 
distanceTo(ObjectId) - Method in class fr.brouillard.oss.jgitver.impl.DistanceCalculator.DepthWalkDistanceCalculator
 
distanceTo(ObjectId) - Method in interface fr.brouillard.oss.jgitver.impl.DistanceCalculator
Computes an eventual distance between the start commit given at build time and the provided target commit.

E

EMPTY_REPOSITORY_VERSION - Static variable in class fr.brouillard.oss.jgitver.Version
 
endVersion() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
to be called when version is finished to be processed.
enhanceVersionWithBranch(Version, String) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
equals(Object) - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
equals(Object) - Method in class fr.brouillard.oss.jgitver.Version
 
extractVersionFrom(String) - Method in class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
 

F

findMaxVersionCommit(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
findTagToUse(Commit, Commit) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
findVersionCommit(Commit, List<Commit>) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
fixedBranchName(String, List<String>) - Static method in class fr.brouillard.oss.jgitver.BranchingPolicy
Builds a BranchingPolicy object that matches the given name and apply the given transformations.
fixedBranchName(String) - Static method in class fr.brouillard.oss.jgitver.BranchingPolicy
Builds a BranchingPolicy object that matches the given name and apply the default transformations.
fr.brouillard.oss.jgitver - package fr.brouillard.oss.jgitver
 
fr.brouillard.oss.jgitver.cli - package fr.brouillard.oss.jgitver.cli
 
fr.brouillard.oss.jgitver.impl - package fr.brouillard.oss.jgitver.impl
 
fr.brouillard.oss.jgitver.impl.metadata - package fr.brouillard.oss.jgitver.impl.metadata
 
fr.brouillard.oss.jgitver.impl.pattern - package fr.brouillard.oss.jgitver.impl.pattern
 
fr.brouillard.oss.jgitver.metadata - package fr.brouillard.oss.jgitver.metadata
 

G

getAnnotatedTags() - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
getBaseVersionAndRegisterMetadata(Commit, Ref) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
getGit() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
getGitObject() - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
getHeadDistance() - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
getLeft() - Method in class fr.brouillard.oss.jgitver.impl.Pair
Retrieve the left part of the pair object.
getLightTags() - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
getMajor() - Method in class fr.brouillard.oss.jgitver.Version
Retrieves the MAJOR part of the version object.
getMinor() - Method in class fr.brouillard.oss.jgitver.Version
Retrieves the MINOR part of the version object.
getPatch() - Method in class fr.brouillard.oss.jgitver.Version
Retrieves the PATCH part of the version object.
getRegistrar() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
getReplaceVersionRegex() - Method in class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
 
getRepository() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
getRight() - Method in class fr.brouillard.oss.jgitver.impl.Pair
Retrieve the rightpart of the pair object.
getSearchPattern() - Method in class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
 
getSHA1() - Static method in class fr.brouillard.oss.jgitver.JGitverProperties
 
getTimestamp(Instant) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
Builds a string representing the given instant interpolated in the current system timezone.
getVersion() - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Return the version to use for the current git repository depending on the HEAD position.
getVersion(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Calculates if necessary the version to use for the current git repository depending on the HEAD position.
getVersion() - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
getVersion(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
getVersion() - Static method in class fr.brouillard.oss.jgitver.JGitverProperties
 
getVersionNamingConfiguration() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
getVersionObject(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Calculates the version to use for the current git repository depending on the HEAD position.
getVersionObject() - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Return the version to use for the current git repository depending on the HEAD position.
getVersionObject(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
getVersionObject() - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
GitUtils - Class in fr.brouillard.oss.jgitver.impl
 
GitUtils() - Constructor for class fr.brouillard.oss.jgitver.impl.GitUtils
 
GitVersionCalculator - Interface in fr.brouillard.oss.jgitver
 
GitVersionCalculatorBuilder - Interface in fr.brouillard.oss.jgitver
 
GitVersionCalculatorImpl - Class in fr.brouillard.oss.jgitver.impl
 
GitVersionCalculatorImplBuilder - Class in fr.brouillard.oss.jgitver.impl
 
GitVersionCalculatorImplBuilder() - Constructor for class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImplBuilder
 

H

hashCode() - Method in class fr.brouillard.oss.jgitver.impl.Commit
 
hashCode() - Method in class fr.brouillard.oss.jgitver.Version
 

I

ignoreBranchName(String) - Static method in class fr.brouillard.oss.jgitver.BranchingPolicy
Builds a BranchingPolicy object that matches the given name for which the recognized branch name has not to be used, ie ignored.
increasePatch() - Method in class fr.brouillard.oss.jgitver.Version
Deprecated.
incrementMajor() - Method in class fr.brouillard.oss.jgitver.Version
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.
incrementMinor() - Method in class fr.brouillard.oss.jgitver.Version
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.
incrementPatch() - Method in class fr.brouillard.oss.jgitver.Version
return a new Version object that is a copy of this one where the patch number is incremented by one.
isAnnotated(Ref) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
 
isBaseCommitOnHead(Commit, Commit) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
isDetachedHead(Repository) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
 
isDirty(Git) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
Checks that underlying repository is dirty (modified with uncommitted changes).
isGitDirty() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
isQualified() - Method in class fr.brouillard.oss.jgitver.Version
 
isSnapshot() - Method in class fr.brouillard.oss.jgitver.Version
 
isVersionTag(Ref) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
Checks regarding the current strategy if the given Ref corresponds to a tag of a version.

J

JGitverProperties - Class in fr.brouillard.oss.jgitver
 
JGitverProperties() - Constructor for class fr.brouillard.oss.jgitver.JGitverProperties
 

L

Lambdas - Class in fr.brouillard.oss.jgitver.impl
Lambdas and java8 utils features ; inspired or copied from: - https://stackoverflow.com/questions/21488056/how-to-negate-a-method-reference-predicate/30475342#30475342 - https://blog.jooq.org/2016/02/18/the-mute-design-pattern/
Lambdas.CheckedFunction<T,R,E extends Throwable> - Interface in fr.brouillard.oss.jgitver.impl
 
Lambdas.CheckedRunnable - Interface in fr.brouillard.oss.jgitver.impl
 
location(File) - Static method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Creates a GitVersionCalculator for the git repository pointing to the given path.
LookupPolicy - Enum in fr.brouillard.oss.jgitver
Policies defining how jgitver will lookup version tags inside the repository.

M

main(String[]) - Static method in class fr.brouillard.oss.jgitver.cli.RunnableCLI
Execute jgitver from CLI, parses args to configure.
major() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
to be called when major version is processed.
MavenVersionStrategy - Class in fr.brouillard.oss.jgitver.impl
 
MavenVersionStrategy(VersionNamingConfiguration, Repository, Git, MetadataRegistrar) - Constructor for class fr.brouillard.oss.jgitver.impl.MavenVersionStrategy
 
maxVersionTag(List<Ref>, List<Ref>) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
maxVersionTag(List<Ref>) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
meta(Metadatas) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
 
meta(Metadatas) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
meta(Metadatas) - Method in class fr.brouillard.oss.jgitver.impl.metadata.MetadataHolder
 
meta(Metadatas) - Method in interface fr.brouillard.oss.jgitver.metadata.MetadataProvider
 
MetadataHolder - Class in fr.brouillard.oss.jgitver.impl.metadata
 
MetadataHolder() - Constructor for class fr.brouillard.oss.jgitver.impl.metadata.MetadataHolder
 
MetadataProvider - Interface in fr.brouillard.oss.jgitver.metadata
 
MetadataRegistrar - Interface in fr.brouillard.oss.jgitver.metadata
 
Metadatas - Enum in fr.brouillard.oss.jgitver.metadata
Enumeration of all the possible metadata that GitVersionCalculator can provide for a repository.
minor() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
to be called when minor version is processed.
Mode - Enum in fr.brouillard.oss.jgitver.impl.pattern
 
mute(Lambdas.CheckedRunnable) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Mute a failure.

N

next() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
Call this each time a separator has been used.
noQualifier() - Method in class fr.brouillard.oss.jgitver.Version
Creates a new Version object from the current one, but removes all qualifiers from it.
NOT_GIT_VERSION - Static variable in class fr.brouillard.oss.jgitver.Version
 

O

Options - Class in fr.brouillard.oss.jgitver.cli
 
Options() - Constructor for class fr.brouillard.oss.jgitver.cli.Options
 

P

Pair<U,V> - Class in fr.brouillard.oss.jgitver.impl
Simple data holder of 2 data types.
Pair(U, V) - Constructor for class fr.brouillard.oss.jgitver.impl.Pair
Creates an immutable pair of two objects of type U & V.
parse(String) - Static method in class fr.brouillard.oss.jgitver.Version
Creates a Version object by parsing the given string.
parseOn(Context) - Method in class fr.brouillard.oss.jgitver.impl.pattern.VersionGrammarParser
 
patch() - Method in class fr.brouillard.oss.jgitver.impl.pattern.AutoSeparatorProvider
to be called when patch version is processed.
PatternVersionStrategy - Class in fr.brouillard.oss.jgitver.impl
 
PatternVersionStrategy(VersionNamingConfiguration, Repository, Git, MetadataRegistrar) - Constructor for class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
Default constructor.
Prefix - Class in fr.brouillard.oss.jgitver.impl.pattern
 
providedBranchName() - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
Provide the branch name externally provided in case we are building on a detached branch.

Q

qualifier(String) - Method in class fr.brouillard.oss.jgitver.BranchingPolicy
 

R

registerMetadata(Metadatas, String) - Method in class fr.brouillard.oss.jgitver.impl.metadata.MetadataHolder
 
registerMetadata(Metadatas, String) - Method in interface fr.brouillard.oss.jgitver.metadata.MetadataRegistrar
 
registerMetadataTags(Metadatas, Stream<Ref>) - Method in class fr.brouillard.oss.jgitver.impl.metadata.MetadataHolder
 
removeQualifier(String) - Method in class fr.brouillard.oss.jgitver.Version
Creates a new Version object from the current one, but removes the given qualifier from it if it exists.
resetSeparatorProvider() - Method in class fr.brouillard.oss.jgitver.impl.pattern.VersionPatternGrammarDefinition
Allow to reset the automatic computation of the separator to use during detection.
run() - Method in interface fr.brouillard.oss.jgitver.impl.Lambdas.CheckedRunnable
 
runAndGetSelf(Runnable) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
RunnableCLI - Class in fr.brouillard.oss.jgitver.cli
Allows to run jgitver using a CLI.
RunnableCLI() - Constructor for class fr.brouillard.oss.jgitver.cli.RunnableCLI
 

S

sanitizeBranchName(String) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
 
searchDepthLimit() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
Defines the history commit depth, starting from HEAD, until which parent commits will be parsed to find tags information.
searchMode() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
self() - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
setAutoIncrementPatch(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true, when the found tag to calculate a version for HEAD is a normal/annotated one, the semver patch version of the tag is increased by one ; except when the tag is on the HEAD itself.
setAutoIncrementPatch(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setAutoIncrementPatch(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setAutoIncrementPatch(boolean) - Method in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
Set the parameter to increment automatically patch number for standard versions coming from annotated tag.
setFindTagVersionPattern(String) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines a regexp search pattern that will match tags identifying a version.
setFindTagVersionPattern(String) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setGitCommitIdLength(int) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines how long the qualifier from SHA1 git commit has to be.
setGitCommitIdLength(int) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setGitCommitIdLength(int) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setLookupPolicy(LookupPolicy) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines the LookupPolicy to be used for the next version resolution.
setLookupPolicy(LookupPolicy) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setMavenLike(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Deprecated.
setMavenLike(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setMaxDepth(int) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines max depth to look for version tags, defaults to Integer.MAX_VALUE.
setMaxDepth(int) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setNonQualifierBranches(String) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines a comma separated list of branches for which no branch name qualifier will be used. default "master".
setNonQualifierBranches(String) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setQualifierBranchingPolicies(BranchingPolicy...) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Sets as an array the policies that will be applied to try to build a qualifier from the branch of the HEAD.
setQualifierBranchingPolicies(List<BranchingPolicy>) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Sets as a list the policies that will be applied to try to build a qualifier from the branch of the HEAD.
setQualifierBranchingPolicies(BranchingPolicy...) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setQualifierBranchingPolicies(List<BranchingPolicy>) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setSearchDepthLimit(int) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
Sets a limit to the depth of lookup for base version tags.
setStrategy(Strategies) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines the strategy to use.
setStrategy(Strategies) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setTagVersionPattern(String) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines the version pattern to use in Strategies.PATTERN mode when HEAD is on an annotated tag
setTagVersionPattern(String) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setTagVersionPattern(String) - Method in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
Set the version pattern to use to compute the final version when HEAD is on a commit with an annotated tag.
setUseCommitTimestamp(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setUseDefaultBranchingPolicy(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
setUseDefaultBranchingPolicy(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setUseDirty(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true, append a qualifier with the "dirty" qualifier if the repository is in a dirty state (ie with uncommited changes or new files)
setUseDirty(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setUseDirty(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setUseDirty(boolean) - Method in class fr.brouillard.oss.jgitver.impl.MavenVersionStrategy
 
setUseDistance(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true, append a qualifier with the distance between the HEAD commit and the found commit with a version tag.
setUseDistance(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setUseDistance(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setUseGitCommitId(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true, append the git commit id (SHA1) to the version.
setUseGitCommitId(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setUseGitCommitId(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setUseGitCommitTimestamp(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true, append the git commit timestamp to the version.
setUseGitCommitTimestamp(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setUseLongFormat(boolean) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
When true describes commits hash with long format pattern, ie preceded with the letter 'g'.
setUseLongFormat(boolean) - Method in class fr.brouillard.oss.jgitver.impl.ConfigurableVersionStrategy
 
setUseLongFormat(boolean) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setVersionPattern(String) - Method in interface fr.brouillard.oss.jgitver.GitVersionCalculator
Defines the version pattern to use in Strategies.PATTERN mode for normal situation (i.e. not on a tag)
setVersionPattern(String) - Method in class fr.brouillard.oss.jgitver.impl.GitVersionCalculatorImpl
 
setVersionPattern(String) - Method in class fr.brouillard.oss.jgitver.impl.PatternVersionStrategy
Set the version pattern to use to compute the final version.
Strategies - Enum in fr.brouillard.oss.jgitver
 

T

TagDateExtractor - Class in fr.brouillard.oss.jgitver.impl
Utility class able to retrieve date of tags.
tagNameFromRef(Ref) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
 
tagsOf(List<Ref>, ObjectId) - Static method in class fr.brouillard.oss.jgitver.impl.GitUtils
 
tagToVersion(String) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
TagType - Enum in fr.brouillard.oss.jgitver.metadata
Qualifier for tags found during resolution, see Metadatas.BASE_TAG_TYPE.
toString() - Method in class fr.brouillard.oss.jgitver.Version
 
toVersionTarget(Ref) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 
toVersionTarget(Commit, Commit) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
 

U

unchecked(Lambdas.CheckedRunnable) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Mute a failure.
unchecked(Lambdas.CheckedFunction<T, R, Throwable>) - Static method in class fr.brouillard.oss.jgitver.impl.Lambdas
Transforms a function throwing a checked exception into an equivalent throwing a RuntimeException wrapping the checked one.

V

valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.BranchingPolicy.BranchNameTransformations
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.impl.pattern.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.impl.VersionStrategy.StrategySearchMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.LookupPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.metadata.Metadatas
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.metadata.TagType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum fr.brouillard.oss.jgitver.Strategies
Returns the enum constant of this type with the specified name.
values() - Static method in enum fr.brouillard.oss.jgitver.BranchingPolicy.BranchNameTransformations
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.impl.pattern.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.impl.VersionStrategy.StrategySearchMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.LookupPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.metadata.Metadatas
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.metadata.TagType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum fr.brouillard.oss.jgitver.Strategies
Returns an array containing the constants of this enum type, in the order they are declared.
Version - Class in fr.brouillard.oss.jgitver
 
Version(Version) - Constructor for class fr.brouillard.oss.jgitver.Version
 
Version(int, int, int, String...) - Constructor for class fr.brouillard.oss.jgitver.Version
 
VersionCalculationException - Exception in fr.brouillard.oss.jgitver.impl
 
VersionCalculationException(String, Throwable) - Constructor for exception fr.brouillard.oss.jgitver.impl.VersionCalculationException
 
VersionCalculationException(String) - Constructor for exception fr.brouillard.oss.jgitver.impl.VersionCalculationException
 
versionFromTag(Ref) - Method in class fr.brouillard.oss.jgitver.impl.VersionStrategy
Computes a Version object from the given tag reference using the strategy configuration.
VersionGrammarDefinition - Class in fr.brouillard.oss.jgitver.impl.pattern
Grammar definition to recognize a version pattern.
VersionGrammarDefinition() - Constructor for class fr.brouillard.oss.jgitver.impl.pattern.VersionGrammarDefinition
Default constructor that define the grammar rules.
VersionGrammarParser - Class in fr.brouillard.oss.jgitver.impl.pattern
Parser to use to recognize a version using a VersionPatternGrammarDefinition grammar.
VersionGrammarParser(VersionPatternGrammarDefinition) - Constructor for class fr.brouillard.oss.jgitver.impl.pattern.VersionGrammarParser
Constructor with given grammar.
VersionNamingConfiguration - Class in fr.brouillard.oss.jgitver.impl
 
VersionNamingConfiguration(BranchingPolicy...) - Constructor for class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
Builds a Configuration object holding information to use while building version.
VersionNamingConfiguration(Pattern, BranchingPolicy...) - Constructor for class fr.brouillard.oss.jgitver.impl.VersionNamingConfiguration
Builds a Configuration object holding information to use while building version.
VersionPatternGrammarDefinition - Class in fr.brouillard.oss.jgitver.impl.pattern
Extension of the VersionGrammarDefinition defining the actions to realize on rules detection.
VersionPatternGrammarDefinition(Version, Function<String, Optional<String>>, Function<String, Optional<String>>, Function<Metadatas, Optional<String>>) - Constructor for class fr.brouillard.oss.jgitver.impl.pattern.VersionPatternGrammarDefinition
Constructor is given the necessary elements to transform the recognized elements.
VersionStrategy<T extends VersionStrategy> - Class in fr.brouillard.oss.jgitver.impl
 
VersionStrategy(VersionNamingConfiguration, Repository, Git, MetadataRegistrar) - Constructor for class fr.brouillard.oss.jgitver.impl.VersionStrategy
Default constructor.
VersionStrategy.StrategySearchMode - Enum in fr.brouillard.oss.jgitver.impl
 
A B C D E F G H I J L M N O P Q R S T U V 
Skip navigation links

Copyright © 2016–2019 Matthieu Brouillard. All rights reserved.