]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add new goal for japicmp to compare different API version
authorDenis Anisimov <denis@vaadin.com>
Thu, 6 Oct 2016 14:17:52 +0000 (17:17 +0300)
committerDenis Anisimov <denis@vaadin.com>
Fri, 7 Oct 2016 06:25:30 +0000 (09:25 +0300)
Change-Id: I89a1e18932bd8db6a53c8261c7ccb85379f0a4ee

all/pom.xml
pom.xml

index 1630241db71c922b228427aa8c8b45276ec5113e..e4658dffd11285db993428801a1cfb9c5f5b053a 100644 (file)
                 </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 0092f32b63b8ed2e3aab937f3ea0289f0ada5cff..53647e8a36a8927f3444c292b03f10bcbb6556e3 100644 (file)
--- 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 -->
                 <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>
 
                 </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>