Skip to content

Commit 9da2885

Browse files
ibauersachsbgrozev
authored andcommitted
Fail build when version doesn't adhere to semantic versioning
1 parent 3f97648 commit 9da2885

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,38 @@
6565
</includes>
6666
</configuration>
6767
</plugin>
68+
<plugin>
69+
<groupId>com.github.siom79.japicmp</groupId>
70+
<artifactId>japicmp-maven-plugin</artifactId>
71+
<version>0.10.0</version>
72+
<configuration>
73+
<newVersion>
74+
<file>
75+
<path>${project.build.directory}/${project.build.finalName}.jar</path>
76+
</file>
77+
</newVersion>
78+
<oldVersion>
79+
<dependency>
80+
<groupId>${project.groupId}</groupId>
81+
<artifactId>${project.artifactId}</artifactId>
82+
<version>1.0.0</version>
83+
</dependency>
84+
</oldVersion>
85+
<parameter>
86+
<onlyModified>true</onlyModified>
87+
<breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
88+
<reportOnlyFilename>true</reportOnlyFilename>
89+
</parameter>
90+
</configuration>
91+
<executions>
92+
<execution>
93+
<phase>verify</phase>
94+
<goals>
95+
<goal>cmp</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
68100
</plugins>
69101

70102
<pluginManagement>

0 commit comments

Comments
 (0)