Permalink
Browse files

Fail build when version doesn't adhere to semantic versioning

  • Loading branch information...
ibauersachs authored and bgrozev committed Jul 12, 2017
1 parent 3f97648 commit 9da28850f56e03841492d251bc09569643fc0a9a
Showing with 32 additions and 0 deletions.
  1. +32 −0 pom.xml
View
32 pom.xml
@@ -65,6 +65,38 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.10.0</version>
<configuration>
<newVersion>
<file>
<path>${project.build.directory}/${project.build.finalName}.jar</path>
</file>
</newVersion>
<oldVersion>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>1.0.0</version>
</dependency>
</oldVersion>
<parameter>
<onlyModified>true</onlyModified>
<breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
<reportOnlyFilename>true</reportOnlyFilename>
</parameter>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>cmp</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>

0 comments on commit 9da2885

Please sign in to comment.