Skip to content

Commit

Permalink
Add ignore rules for versioning in rules.xml to handle pre-release an…
Browse files Browse the repository at this point in the history
…d non-standard versions
  • Loading branch information
mkjsix committed Nov 7, 2024
1 parent edb5633 commit dfe2804
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,22 @@
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 https://www.mojohaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">

<!-- General ignore rules -->
<ignoreVersions>
<ignoreVersion type="regex">.*-alpha.*</ignoreVersion>
<ignoreVersion type="regex">.*-beta.*</ignoreVersion>
<ignoreVersion type="regex">.*-RC.*</ignoreVersion>
</ignoreVersions>

<!-- Specific rule for com.graphql-java:graphql-java to ignore non-standard versions -->
<rules>
<rule groupId="com.graphql-java" artifactId="graphql-java" comparisonMethod="maven">
<ignoreVersions>
<!-- Exclude versions that are not in MAJOR.MINOR or MAJOR.MINOR.PATCH format -->
<ignoreVersion type="regex">.*[^0-9.]+.*</ignoreVersion>
<ignoreVersion type="regex">^\d+\.\d+\.\d+\..*$</ignoreVersion> <!-- Excludes versions with more than 3 numeric segments -->
</ignoreVersions>
</rule>
</rules>
</ruleset>

0 comments on commit dfe2804

Please sign in to comment.