Enforce a release is made with JDK 1.7 (and not w/ 1.8+)

Motivations:

JDK 1.8 adds default methods to collections classes that reference
classes that don't exist in JDK 7. That's binary compatible,
but not source compatible.

Modifications:

Enforce JDK version to be 1.7.* when releasing

Result:

Fixes #3548
This commit is contained in:
Trustin Lee 2015-03-29 16:58:50 +09:00
parent ab74dccd23
commit bdf0bddc85

View File

@ -216,6 +216,11 @@
</goals>
<configuration>
<rules>
<requireJavaVersion>
<!-- Enforce JDK 1.7 (and not 1.8+) for compilation. -->
<!-- See: https://github.com/netty/netty/issues/3548 -->
<version>[1.7.0, 1.8.0)</version>
</requireJavaVersion>
<requireProperty>
<regexMessage>
Release process must be performed on linux-x86_64.
@ -877,8 +882,8 @@
<configuration>
<rules>
<requireJavaVersion>
<!-- Enforce java 1.7 as minimum for compiling -->
<!-- This is needed because of java.util.zip.Deflater and NIO UDP multicast-->
<!-- Enforce JDK 1.7+ for compilation. -->
<!-- This is needed because of java.util.zip.Deflater and NIO UDP multicast. -->
<version>[1.7.0,)</version>
</requireJavaVersion>
<requireMavenVersion>