Skip to content

Commit

Permalink
[ELY-1398] Add support for public API compatibility check using japicmp
Browse files Browse the repository at this point in the history
tool

Using japicmp tool [1] 	profile was created to compare two jars
 - last 1.1.x released jar (currently 1.1.7.Final)
 - currently SNAPSHOT version (e.g. 1.2.0.Beta12-SNAPSHOT)

Tool comes with lots of options to specify what to check [2]
In this initial version breakBuildBasedOnSemanticVersioning is turned
on. And set of public packages is specified.

Usage:
mvn verify -DskipTests -PcompatibilityCheck

[1] https://github.com/siom79/japicmp
[2] https://siom79.github.io/japicmp/MavenPlugin.html
  • Loading branch information
mchoma committed Jan 8, 2018
1 parent 72da819 commit ab47061
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pom.xml
Expand Up @@ -545,6 +545,46 @@
<excludedGroups>org.wildfly.security.ExcludedOnIbmJdk</excludedGroups>
</properties>
</profile>
<profile>
<id>compatibilityCheck</id>
<build>
<plugins>
<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
<version>0.11.0</version>
<configuration>
<oldVersion>
<dependency>
<groupId>org.wildfly.security</groupId>
<artifactId>wildfly-elytron</artifactId>
<version>1.1.7.Final</version>
<type>jar</type>
</dependency>
</oldVersion>
<newVersion>
<file>
<path>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</path>
</file>
</newVersion>
<parameter>
<breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
<includes>org.wildfly.security,org.wildfly.security.auth,org.wildfly.security.auth.callback,org.wildfly.security.auth.client,org.wildfly.security.auth.permission,org.wildfly.security.auth.principal,org.wildfly.security.auth.server,org.wildfly.security.auth.util,org.wildfly.security.authz,org.wildfly.security.credential,org.wildfly.security.credential.source,org.wildfly.security.credential.store,org.wildfly.security.evidence,org.wildfly.security.http,org.wildfly.security.key,org.wildfly.security.manager,org.wildfly.security.manager.action,org.wildfly.security.mechanism,org.wildfly.security.password,org.wildfly.security.password.interfaces,org.wildfly.security.password.spec,org.wildfly.security.permission,org.wildfly.security.sasl.util,org.wildfly.security.ssl,org.wildfly.security.auth.server.event,org.wildfly.security.asn1,org.wildfly.security.x500,org.wildfly.security.x500.cert</includes>
<includeExclusively>true</includeExclusively>
</parameter>
</configuration>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>cmp</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<repositories>
Expand Down

0 comments on commit ab47061

Please sign in to comment.