Skip to content

Commit 259d341

Browse files
committed
Add japicmp plugin to build for checking API changes
For now, it breaks the build on every change, even compatible changes.
1 parent 48c265b commit 259d341

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

pom.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,45 @@
4242
<target>7</target>
4343
</configuration>
4444
</plugin>
45+
<plugin>
46+
<groupId>com.github.siom79.japicmp</groupId>
47+
<artifactId>japicmp-maven-plugin</artifactId>
48+
<version>0.5.0</version>
49+
<configuration>
50+
<oldVersion>
51+
<dependency>
52+
<groupId>org.nibor.autolink</groupId>
53+
<artifactId>autolink</artifactId>
54+
<version>0.2.0</version>
55+
</dependency>
56+
</oldVersion>
57+
<newVersion>
58+
<file>
59+
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
60+
</file>
61+
</newVersion>
62+
<parameter>
63+
<excludes>
64+
<exclude>*.internal</exclude>
65+
<exclude>*.internal.*</exclude>
66+
</excludes>
67+
<accessModifier>public</accessModifier>
68+
<breakBuildOnModifications>true</breakBuildOnModifications>
69+
<breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications>
70+
<onlyModified>true</onlyModified>
71+
<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
72+
<includeSynthetic>false</includeSynthetic>
73+
</parameter>
74+
</configuration>
75+
<executions>
76+
<execution>
77+
<phase>verify</phase>
78+
<goals>
79+
<goal>cmp</goal>
80+
</goals>
81+
</execution>
82+
</executions>
83+
</plugin>
4584
<plugin>
4685
<groupId>org.sonatype.plugins</groupId>
4786
<artifactId>nexus-staging-maven-plugin</artifactId>

0 commit comments

Comments
 (0)