Fix up clirr version comparison so defaults to 4.0, except cache=4.1-alpha2

Can also override individually using -DcomparisonVersion and -Dcache.comparisonVersion

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-12-13 17:53:59 +00:00
parent 3fc9bd963c
commit a11743431b
3 changed files with 31 additions and 8 deletions

View File

@ -111,6 +111,14 @@
<maven.compile.target>1.5</maven.compile.target>
<maven.compile.optimize>true</maven.compile.optimize>
<maven.compile.deprecation>true</maven.compile.deprecation>
<!-- cache was not present in 4.0; it first appeared in 4.1-alpha2 -->
<comparisonVersion>4.1-alpha2</comparisonVersion>
<!--
-- Allow separate override of cache version, e.g.
--
-- mvn clirr:clirr -DcomparisonVersion=4.1-alpha1 -Dcache.comparisonVersion=4.1-alpha2
-->
<cache.comparisonVersion>${comparisonVersion}</cache.comparisonVersion>
</properties>
<build>
@ -172,6 +180,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<comparisonVersion>${cache.comparisonVersion}</comparisonVersion>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -186,14 +186,6 @@
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<comparisonVersion>4.0</comparisonVersion>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>

16
pom.xml
View File

@ -75,6 +75,7 @@
<slf4j.version>1.5.11</slf4j.version>
<junit.version>4.8.1</junit.version>
<easymock.version>2.5.2</easymock.version>
<comparisonVersion>4.0</comparisonVersion>
</properties>
<modules>
@ -225,6 +226,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<comparisonVersion>${comparisonVersion}</comparisonVersion>
</configuration>
</plugin>
</plugins>
</build>
@ -246,6 +254,14 @@
</reportSets>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<configuration>
<comparisonVersion>${comparisonVersion}</comparisonVersion>
</configuration>
</plugin>
</plugins>
</reporting>