Skip to content

Instantly share code, notes, and snippets.

@htr3n
Last active August 28, 2024 22:32
Show Gist options
  • Save htr3n/af0eea8975d893a27ea63bfaa117d558 to your computer and use it in GitHub Desktop.
Save htr3n/af0eea8975d893a27ea63bfaa117d558 to your computer and use it in GitHub Desktop.
Maven versions rules
<ruleset comparisonMethod="maven"
xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versions-model/xsd/rule-2.1.0.xsd">
<ignoreVersions>
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|rc|RC|CR|M|EA|AM)[-_\.]?\d*</ignoreVersion>
</ignoreVersions>
<rules>
<rule groupId="com.diffplug.spotless" artifactId="spotless-maven-plugin" comparisonMethod="maven">
<ignoreVersions>
<ignoreVersion type="range">[2.31.0,)</ignoreVersion>
</ignoreVersions>
</rule>
</rules>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment