Skip to content

Commit 13617b9

Browse files
Version Ruleset Update: Generic Version Check
- Removing slf4j specific version handling - Adding a global version check that will exclude any version that does not include the maven plugin version scheme (EG ending with -M7), but does contain upper or lower case letters and optional following digits. Based on current version strategies of project dependencies and plugins, this should enforce only updating to known release-quality versions.
1 parent fda5d1a commit 13617b9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

versionRuleset.xml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
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">
44
<rules>
5+
<rule groupId="*" artifactId="*s" comparisonMethod="maven">
6+
<ignoreVersions>
7+
<ignoreVersion type="regex">^(?!.[\s\S]*-M\d*).[\s\S]*.*[a-zA-Z]\d.*$</ignoreVersion>
8+
</ignoreVersions>
9+
</rule>
510
<!--
611
xml-apis has a screwy version structure where the 2.x versions are older than the 1.x versions (check the dates in maven!).
712
we are explicitly ignoring all of the 2.x version lineage of the project.
@@ -22,12 +27,6 @@
2227
<ignoreVersion type="regex">^0{0,1}[4-9].*</ignoreVersion>
2328
</ignoreVersions>
2429
</rule>
25-
<rule groupId="org.slf4j" artifactId="slf4j-api" comparisonMethod="maven">
26-
<ignoreVersions>
27-
<!-- Only stable versions -->
28-
<ignoreVersion type="regex">.*[a-zA-Z].*</ignoreVersion>
29-
</ignoreVersions>
30-
</rule>
3130
</rules>
3231
</ruleset>
3332
<!--
@@ -37,13 +36,6 @@ RE-USABLE REGEX REFERENCES
3736
Keep in mind that regexes are used as exclusions:
3837
Anything that *DOES NOT MATCH IS VALID FOR UPDATE*
3938
40-
##### REGEX ##############
41-
.*[a-zA-Z].*
42-
###########################
43-
Some dependencies will only use {major}.{minor}.{patch} to identify STABLE versions
44-
This REGEX will exclude dependencies with any alpha characters.
45-
- Unstable references can be identified in maven central as those with a pink/red background
46-
4739
##### REGEX ##############
4840
^0{0,1}[4-9].*
4941
###########################

0 commit comments

Comments
 (0)