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/18 15:59:08 UTC

svn commit: r1652771 - in /maven/plugins/trunk/maven-checkstyle-plugin: pom.xml src/site/apt/index.apt.vm

Author: dennisl
Date: Sun Jan 18 14:59:07 2015
New Revision: 1652771

URL: http://svn.apache.org/r1652771
Log:
Document and enforce the version of Java that the plugin requires.

Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
    maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/index.apt.vm

Modified: maven/plugins/trunk/maven-checkstyle-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/pom.xml?rev=1652771&r1=1652770&r2=1652771&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/pom.xml Sun Jan 18 14:59:07 2015
@@ -58,6 +58,7 @@ under the License.
   </distributionManagement>
 
   <properties>
+    <javaVersion>1.5</javaVersion>
     <mavenVersion>2.2.1</mavenVersion>
     <checkstyleVersion>5.8</checkstyleVersion>
     <doxiaVersion>1.4</doxiaVersion>
@@ -271,6 +272,27 @@ under the License.
     </pluginManagement>
     <plugins>
       <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>
+            <version>1.0</version>
+          </signature>
+        </configuration>
+        <executions>
+          <execution>
+            <id>check-java-1.5-compat</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.codehaus.plexus</groupId>
         <artifactId>plexus-component-metadata</artifactId>
         <executions>

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/index.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/index.apt.vm?rev=1652771&r1=1652770&r2=1652771&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/index.apt.vm (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/site/apt/index.apt.vm Sun Jan 18 14:59:07 2015
@@ -31,7 +31,7 @@ ${project.name}
 
   The Checkstyle Plugin generates a report regarding the code style used by the developers. For more information about Checkstyle,
   see {{{http://checkstyle.sourceforge.net/}http://checkstyle.sourceforge.net/}}.
-  This version of the plugin uses Checkstyle ${checkstyleVersion} by default.
+  This version of the plugin uses Checkstyle ${checkstyleVersion} and requires Java ${javaVersion}.
 
   The plugin can be configured in the project's POM. Predefined rulesets are included with the plugin, these are:
   <<<sun_checks.xml>>>, <<<turbine_checks.xml>>> and <<<maven_checks.xml>>>. You can also use a custom ruleset by