-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add describeTagMaxDepth config to limit the repository scan
In case we have a more specific tag pattern to search on a branch, and this pattern does not match any tag in the branch, it's preferable to have a limit to the describe search for performance reasons.
- Loading branch information
Marc ROZANC
committed
Sep 22, 2024
1 parent
b094b98
commit b9bd821
Showing
8 changed files
with
161 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
|
||
<xs:schema xmlns="https://github.com/qoomon/maven-git-versioning-extension" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
targetNamespace="https://github.com/qoomon/maven-git-versioning-extension" | ||
elementFormDefault="qualified"> | ||
|
||
<xs:element name="configuration"> | ||
<xs:complexType> | ||
<xs:all> | ||
<xs:element name="disable" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="projectVersionPattern" type="xs:string" minOccurs="0"/> | ||
|
||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="describeTagMaxDepth" type="xs:int" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="refs" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="ref" type="RefPatchDescription" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
|
||
<xs:attribute name="considerTagsOnBranches" type="xs:boolean"/> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:element name="rev" type="PatchDescription" minOccurs="0"/> | ||
|
||
<xs:element name="relatedProjects" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="project" type="RelatedProject" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
</xs:complexType> | ||
</xs:element> | ||
|
||
<xs:complexType name="PatchDescription"> | ||
<xs:all> | ||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="version" type="xs:string" minOccurs="0"/> | ||
<xs:element name="properties" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="RefPatchDescription"> | ||
<xs:all> | ||
<xs:element name="pattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagPattern" type="xs:string" minOccurs="0"/> | ||
<xs:element name="describeTagMaxDepth" type="xs:int" minOccurs="0"/> | ||
<xs:element name="describeTagFirstParent" type="xs:boolean" minOccurs="0"/> | ||
<xs:element name="updatePom" type="xs:boolean" minOccurs="0"/> | ||
|
||
<xs:element name="version" type="xs:string" minOccurs="0"/> | ||
<xs:element name="properties" minOccurs="0"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:all> | ||
|
||
<xs:attribute name="type" use="required"> | ||
<xs:simpleType> | ||
<xs:restriction base="xs:string"> | ||
<xs:enumeration value="tag"/> | ||
<xs:enumeration value="branch"/> | ||
</xs:restriction> | ||
</xs:simpleType> | ||
</xs:attribute> | ||
</xs:complexType> | ||
|
||
<xs:complexType name="RelatedProject"> | ||
<xs:all> | ||
<xs:element name="groupId" type="xs:string"/> | ||
<xs:element name="artifactId" type="xs:string"/> | ||
</xs:all> | ||
</xs:complexType> | ||
|
||
</xs:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<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-6.4.0.xsd"> | ||
xsi:schemaLocation="https://github.com/qoomon/maven-git-versioning-extension https://qoomon.github.io/maven-git-versioning-extension/configuration-9.8.2.xsd"> | ||
|
||
<disable>false</disable> | ||
<updatePom>false</updatePom> | ||
<preferTags>false</preferTags> | ||
<describeTagMaxDepth>100</describeTagMaxDepth> | ||
|
||
<branch> | ||
<pattern>.*</pattern> | ||
<versionFormat>${branch}-SNAPSHOT</versionFormat> | ||
<property> | ||
<name>name</name> | ||
<valueFormat>value</valueFormat> | ||
</property> | ||
<property> | ||
<name>name</name> | ||
<valueFormat>value</valueFormat> | ||
</property> | ||
</branch> | ||
<refs considerTagsOnBranches="true"> | ||
<ref type="tag"> | ||
<pattern>v(.*)</pattern> | ||
<version>${ref.1}</version> | ||
</ref> | ||
|
||
<tag> | ||
<pattern>v(.*)</pattern> | ||
<versionFormat>${1}</versionFormat> | ||
</tag> | ||
<ref type="branch"> | ||
<pattern>.*</pattern> | ||
<version>${ref}</version> | ||
<properties> | ||
<name>value</name> | ||
</properties> | ||
</ref> | ||
</refs> | ||
|
||
<commit> | ||
<versionFormat>${commit}</versionFormat> | ||
</commit> | ||
<rev> | ||
<version>${commit}</version> | ||
</rev> | ||
|
||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters