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 authored and Martin Choma committed Feb 12, 2018
1 parent da38908 commit 7d8bc0f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pom.xml
Expand Up @@ -532,6 +532,56 @@
<version.surefire.plugin>2.19.1</version.surefire.plugin>
</properties>
</profile>
<profile>
<id>compatibilityCheck</id>
<activation>
<property>
<name>!skipCompatibility</name>
</property>
</activation>
<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>
<!-- Update based on ELY-1483 -->
<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</includes>
<excludes>
<!-- false positive ELY-1453 -->
<exclude>org.wildfly.security.auth.server.event.RealmDefiniteOutcomeAuthenticationEvent#RealmDefiniteOutcomeAuthenticationEvent(org.wildfly.security.auth.server.RealmIdentity,org.wildfly.security.credential.Credential,org.wildfly.security.evidence.Evidence)</exclude>
</excludes>
<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 7d8bc0f

Please sign in to comment.