You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2015/01/19 09:24:29 UTC
svn commit: r1652932 - /maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
Author: dennisl
Date: Mon Jan 19 08:24:28 2015
New Revision: 1652932
URL: http://svn.apache.org/r1652932
Log:
Use build-helper-maven-plugin to make the version parts of the maven.compiler.target property available as separate properties, so that they can be used to define the java signature artifactId used by animal-sniffer. This should be moved to maven-parent later on, if others feel that it is a good idea.
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
Modified: maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/pom.xml?rev=1652932&r1=1652931&r2=1652932&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/pom.xml Mon Jan 19 08:24:28 2015
@@ -269,18 +269,40 @@ under the License.
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.9.1</version>
+ <executions>
+ <!--
+ Make the version parts of the maven.compiler.target property
+ available as separate properties, so that they can be used to define
+ the java signature artifactId used by animal-sniffer
+ -->
+ <execution>
+ <id>parse-version</id>
+ <goals>
+ <goal>parse-version</goal>
+ </goals>
+ <configuration>
+ <propertyPrefix>javaSignature</propertyPrefix>
+ <versionString>${maven.compiler.target}</versionString>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.13</version>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
- <artifactId>java15</artifactId>
+ <artifactId>java${javaSignature.majorVersion}${javaSignature.minorVersion}</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
- <id>check-java-1.5-compat</id>
+ <id>check-java-compatibility</id>
<phase>process-classes</phase>
<goals>
<goal>check</goal>