diff options
author | Denis Anisimov <denis@vaadin.com> | 2016-10-06 17:17:52 +0300 |
---|---|---|
committer | Denis Anisimov <denis@vaadin.com> | 2016-10-07 09:25:30 +0300 |
commit | 39b8049755700178109c970ec36819f68a8b21d1 (patch) | |
tree | c45c27a19a31713b084a1d7f4d7a517af7efa027 /pom.xml | |
parent | cc479e9a44200f13001074d58903e6f2baa5253d (diff) | |
download | vaadin-framework-39b8049755700178109c970ec36819f68a8b21d1.tar.gz vaadin-framework-39b8049755700178109c970ec36819f68a8b21d1.zip |
Add new goal for japicmp to compare different API version
Change-Id: I89a1e18932bd8db6a53c8261c7ccb85379f0a4ee
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -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> |