From f6f20e360f48d3db247991e8420fd7a86061d21b Mon Sep 17 00:00:00 2001 From: Matthieu Brouillard Date: Sun, 27 Nov 2016 16:26:43 +0100 Subject: [PATCH] provide xml-schema for jgitver maven configuration file, fixes #37 --- README.md | 2 +- .../schemas/jgitver-configuration-v1_0_0.xsd | 92 +++++++++++++++++++ 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 src/doc/schemas/jgitver-configuration-v1_0_0.xsd diff --git a/README.md b/README.md index 192cb7c..6ac0a43 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ file under `$rootProjectDir/.mvn/jgitver.config.xml` having the following format pattern - NAME + NAME ... diff --git a/src/doc/schemas/jgitver-configuration-v1_0_0.xsd b/src/doc/schemas/jgitver-configuration-v1_0_0.xsd new file mode 100644 index 0000000..74e0593 --- /dev/null +++ b/src/doc/schemas/jgitver-configuration-v1_0_0.xsd @@ -0,0 +1,92 @@ + + + + + + + + + add '-SNAPSHOT' to all versions that do not correspond to a release + + + + + control how a base version is ued to calculate the new version, here the patch number of the version will be incremented. If version X.Y.Z is found as base version, then X.Y.(Z+1) will be used for the new version. + + + + add a distance number from the base version as a version qualifier. For example if HEAD is 3 commit ahead the base version 1.0.0 then calculated version will be 1.0.0-3 + + + + add a 'dirty' qualifier if the version is calculated from a stale git directory (modified files, new files, ...) + + + + appends a qualifier with the git sha1 of the HEAD commit, the lenght is controled by the property 'gitCommitIdLength' + + + + + comma separated list of branches for which no qualifier should be defined + + + + + + + + + + + + relative path to a directory to be excluded by jgitver. Paths are relative to the base multi module directory of the maven project. + + + + + + + + + + + + + + + + java regex pattern that will match branch name. The regex pattern to be valid MUST contain a unique group selection. + + + + + + + + + a transformation to apply, value taken from fr.brouillard.oss.jgitver.BranchingPolicy#BranchNameTransformations + + + + + \ No newline at end of file