From e52e825c6df1eaac4a8030344fda17adeb22b96a Mon Sep 17 00:00:00 2001
From: Jukka Zitting <jukka@apache.org>
Date: Fri, 26 Aug 2011 15:28:47 +0200
Subject: [PATCH] TIKA-699: Automatic checks against backwards-incompatible
 API changes

Add clirr-maven-plugin configuration for verifying backwards compatibility of tika-core. Note that the clirr plugin doesn't understand bundle packaging, so we need to explicitly specify the artifact to compare against.
---
 tika-core/pom.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/tika-core/pom.xml b/tika-core/pom.xml
index 0ae8de9..a76c9d8 100644
--- a/tika-core/pom.xml
+++ b/tika-core/pom.xml
@@ -84,6 +84,27 @@
           </excludes>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>clirr-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>verify</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+            <configuration>
+              <comparisonArtifacts>
+                <comparisonArtifact>
+                  <groupId>${project.groupId}</groupId>
+                  <artifactId>${project.artifactId}</artifactId>
+                  <version>0.9</version>
+                </comparisonArtifact>
+              </comparisonArtifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
-- 
1.7.4.4

