Skip to content
Permalink
Browse files
Using mojo extra-enforcer-rules enforceBytecodeVersion.
This rule enforces a bytecode version in dependencies.
This would prevent cases like JENKINS-8914 where someone had
introduced a dependency compiled with JDK1.6 at a time where
Jenkins was still on 1.5.

With 1.7 already here and 1.8 coming, this should help no to do that
again.
  • Loading branch information
batmat committed May 20, 2013
1 parent ca27f06 commit b02b14764d0be6c0e41e9dc12e1d97d9300154b2
Showing with 10 additions and 0 deletions.
  1. +10 −0 pom.xml
10 pom.xml
@@ -624,10 +624,20 @@ THE SOFTWARE.
<requireMavenVersion>
<version>3.0</version>
</requireMavenVersion>
<enforceBytecodeVersion>
<maxJdkVersion>1.6</maxJdkVersion>
</enforceBytecodeVersion>
</rules>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
<version>1.0-alpha-4</version>
</dependency>
</dependencies>
</plugin>

<plugin>

0 comments on commit b02b147

Please sign in to comment.