Releases: qoomon/maven-git-versioning-extension
Releases · qoomon/maven-git-versioning-extension
7.1.3
7.1.2
7.1.1
7.1.0
7.0.0
Features
-
Add GitHub Actions, GitLab CI and Jenkins environment variable support
- GitHub Actions: if
$GITHUB_ACTIONS == true
,GITHUB_REF
is considered - GitLab CI: if
$GITLAB_CI == true
,CI_COMMIT_BRANCH
andCI_COMMIT_TAG
are considered - Circle CI: if
$CIRCLECI == true
,CIRCLE_BRANCH
andCIRCLE_TAG
are considered - Jenkins: if
JENKINS_HOME
is set,BRANCH_NAME
andTAG_NAME
are considered
- GitHub Actions: if
-
Simplify xml configuration (also see BREAKING CHANGES)
Example:
maven-git-versioning-extension.xml
<configuration xmlns="https://github.com/qoomon/maven-git-versioning-extension" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-7.0.0.xsd"> <refs> <ref type="branch"> <pattern>.+</pattern> <version>${ref}-SNAPSHOT</version> <properties> <foo>${ref}</foo> </properties> </ref> <ref type="tag"> <pattern><![CDATA[v(?<version>.*)]]></pattern> <version>${ref.version}</version> </ref> </refs> <!-- optional fallback configuration in case of no matching ref configuration--> <rev> <version>${commit}</version> </rev> </configuration>
-
New option to consider tag configs on branches (attached HEAD), enabled by
<refs considerTagsOnBranches="true">
- If enabled, first matching branch or tag config will be used for versioning
-
prevent unnecessary updates of
pom.xml
to prevent unwanted rebuilds (#129 kudos to @ls-urs-keller)
BREAKING CHANGES
- There is no default config anymore, if no
<ref>
configuration is matching current git situation and no<rev>
configuration has been
defined a warning message will be logged and extension will be skipped. - Placeholder Changes (old -> new)
${branch}
->${ref}
${tag}
->${ref}
${REF_PATTERN_GROUP}
->${ref.REF_PATTERN_GROUP}
${describe.TAG_PATTERN_GROUP}
->${describe.tag.TAG_PATTERN_GROUP}
preferTags
option was removed- use
<refs considerTagsOnBranches="true">
instead
- use
6.5.0
-
Features
- add git describe version placeholders
- new placeholders
${describe}
${describe.tag}
${describe.<TAG_PATTERN_GROUP_NAME or TAG_PATTERN_GROUP_INDEX>}
e.g. patternv(?<version>.*)
will create placeholder${describe.version}
${describe.distance}
- new placeholders
- add git describe version placeholders
-
BREAKING CHANGES
- no longer provide project property
git.dirty
due to performance issues on larger projects,
version format placeholder${dirty}
is still available
- no longer provide project property