Author: dennisl
Date: Sat Sep 6 23:04:38 2014
New Revision: 1622962
URL: http://svn.apache.org/r1622962
Log:
[WHISKER-12] Cleanup Build Infrastructure
- Add maven-enforcer-plugin to check the bytecode version of dependencies
transitively
Modified:
creadur/whisker/trunk/pom.xml
Modified: creadur/whisker/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/creadur/whisker/trunk/pom.xml?rev=1622962&r1=1622961&r2=1622962&view=diff
==============================================================================
--- creadur/whisker/trunk/pom.xml (original)
+++ creadur/whisker/trunk/pom.xml Sat Sep 6 23:04:38 2014
@@ -283,6 +283,34 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <!-- This checks the bytecode version of the dependencies
transitively -->
+ <id>enforce-bytecode-version</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <enforceBytecodeVersion>
+ <maxJdkVersion>${target.jdk}</maxJdkVersion>
+ </enforceBytecodeVersion>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>extra-enforcer-rules</artifactId>
+ <version>1.0-beta-2</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>