Skip to content

Commit

Permalink
Update versions-maven-plugin; ignore prereleases (#727)
Browse files Browse the repository at this point in the history
* Configure versions plugin to skip alphas/betas
* Ignore cr/CR versions too
  • Loading branch information
seanf committed Feb 20, 2018
1 parent f8ef325 commit 6709efe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
@@ -0,0 +1,8 @@
<ruleset comparisonMethod="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 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<!-- Thanks to Michael Piefel and Philip Helger: https://stackoverflow.com/a/22174801/14379 -->
<ignoreVersions>
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|cr|CR|rc|RC|M|EA)[-_\.]?[0-9]*</ignoreVersion>
</ignoreVersions>
</ruleset>
12 changes: 11 additions & 1 deletion parent/pom.xml
Expand Up @@ -596,7 +596,17 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.2</version>
<version>2.5</version>
<configuration>
<rulesUri>classpath:///zanata-build-tools/versions-rules.xml</rulesUri>
</configuration>
<dependencies>
<dependency>
<groupId>org.zanata</groupId>
<artifactId>build-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</plugin>

<plugin>
Expand Down

0 comments on commit 6709efe

Please sign in to comment.