aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-10-06 17:17:52 +0300
committerDenis Anisimov <denis@vaadin.com>2016-10-07 09:25:30 +0300
commit39b8049755700178109c970ec36819f68a8b21d1 (patch)
treec45c27a19a31713b084a1d7f4d7a517af7efa027
parentcc479e9a44200f13001074d58903e6f2baa5253d (diff)
downloadvaadin-framework-39b8049755700178109c970ec36819f68a8b21d1.tar.gz
vaadin-framework-39b8049755700178109c970ec36819f68a8b21d1.zip
Add new goal for japicmp to compare different API version
Change-Id: I89a1e18932bd8db6a53c8261c7ccb85379f0a4ee
-rw-r--r--all/pom.xml17
-rw-r--r--pom.xml51
2 files changed, 68 insertions, 0 deletions
diff --git a/all/pom.xml b/all/pom.xml
index 1630241db7..e4658dffd1 100644
--- a/all/pom.xml
+++ b/all/pom.xml
@@ -338,5 +338,22 @@
</pluginManagement>
</build>
</profile>
+ <profile>
+ <id>apicmp</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.siom79.japicmp</groupId>
+ <artifactId>japicmp-maven-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/pom.xml b/pom.xml
index 0092f32b63..53647e8a36 100644
--- a/pom.xml
+++ b/pom.xml
@@ -47,6 +47,7 @@
<jetty.version>9.3.7.v20160115</jetty.version>
<phantomjs.version>2.1.1</phantomjs.version>
+ <skipApiDiff></skipApiDiff>
</properties>
<!-- TODO: remove this after maven plugin has been released -->
@@ -279,6 +280,11 @@
<artifactId>org.eclipse.jgit</artifactId>
<version>3.5.1.201410131835-r</version>
</dependency>
+ <dependency>
+ <groupId>com.github.siom79.japicmp</groupId>
+ <artifactId>japicmp-maven-plugin</artifactId>
+ <version>0.9.1</version>
+ </dependency>
</dependencies>
</dependencyManagement>
@@ -600,6 +606,51 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>apicmp</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.github.siom79.japicmp</groupId>
+ <artifactId>japicmp-maven-plugin</artifactId>
+ <configuration>
+ <oldVersion>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}</artifactId>
+ <version>${vaadin.api.reference.version}</version>
+ <type>jar</type>
+ </dependency>
+ </oldVersion>
+ <newVersion>
+ <file>
+ <path>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</path>
+ </file>
+ </newVersion>
+ <parameter>
+ <ignoreMissingClasses>true</ignoreMissingClasses>
+ <onlyModified>true</onlyModified>
+ <skipDiffReport>true</skipDiffReport>
+ <skipXmlReport>true</skipXmlReport>
+ <ignoreMissingOldVersion>true</ignoreMissingOldVersion>
+ <ignoreMissingNewVersion>true</ignoreMissingNewVersion>
+ </parameter>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>cmp</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>