Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 374
Expand file tree
/
Copy pathversionRuleset.xml
More file actions
Latest commit
55 lines (52 loc) · 2.34 KB
/
Copy pathversionRuleset.xml
File metadata and controls
55 lines (52 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<rulesetcomparisonMethod="maven"
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">
<rules>
<rulegroupId="*"artifactId="*"comparisonMethod="maven">
<!--
This regex is intended to restrict version updates to the last stable releases of dependencies and plugins.
Any version that does not contain the stable maven-plugin version naming scheme (EG "-M7"),
but does contain letters a-zA-Z (and optional digits after)
-->
<ignoreVersions>
<ignoreVersiontype="regex">^(?!.[\s\S]*-M\d*).[\s\S]*.*[a-zA-Z]\d.*$</ignoreVersion>
</ignoreVersions>
</rule>
<!--
xml-apis has a screwy version structure where the 2.x versions are older than the 1.x versions (check the dates in maven!).
we are explicitly ignoring all of the 2.x version lineage of the project.
-->
<rulegroupId="xml-apis"artifactId="xml-apis"comparisonMethod="maven">
<ignoreVersions>
<ignoreVersiontype="regex">2.*</ignoreVersion>
</ignoreVersions>
</rule>
<!--
Mockito is bound to v.3.x until powermock gets updated
Prevent auto-update of mockito based on that expectation
https://github.com/powermock/powermock/issues/1109
-->
<rulegroupId="org.mockito"artifactId="mockito-core"comparisonMethod="maven">
<ignoreVersions>
<ignoreVersiontype="regex">^0{0,1}[4-9].*</ignoreVersion>
</ignoreVersions>
</rule>
<rulegroupId="javax.servlet"artifactId="javax.servlet-api"comparisonMethod="maven">
<ignoreVersions>
<ignoreVersiontype="regex">^0{0,1}[4-9].*</ignoreVersion>
</ignoreVersions>
</rule>
</rules>
</ruleset>
<!--
###########################
RE-USABLE REGEX REFERENCES
###########################
Keep in mind that regexes are used as exclusions:
Anything that *DOES NOT MATCH IS VALID FOR UPDATE*
##### REGEX ##############
^0{0,1}[4-9].*
###########################
Occassionally we need to couple to a major version of an artifact.
This REGEX is an example of how to tie to the latest artifact of major versions 0,1,2,or 3
-->