Skip to content

Commit

Permalink
Using mojo extra-enforcer-rules enforceBytecodeVersion.
Browse files Browse the repository at this point in the history
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 b02b147
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Expand Up @@ -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>
Expand Down

0 comments on commit b02b147

Please sign in to comment.