Bumping up JDK requirement to 1.7 with easier to read error message

This commit is contained in:
Joakim Erdfelt 2012-06-26 11:26:56 -07:00
parent f9ef423be2
commit aba59b6dc0
1 changed files with 3 additions and 2 deletions

View File

@ -124,10 +124,11 @@
<configuration>
<rules>
<requireMavenVersion>
<version>[2.0.6,)</version>
<version>[3.0.0,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.5,)</version>
<version>[1.7,)</version>
<message>[ERROR] OLD JDK [${java.version}] in use. Jetty ${project.version} requires JDK 1.7 or newer</message>
</requireJavaVersion>
<versionTxtRule implementation="org.eclipse.jetty.toolchain.enforcer.rules.VersionTxtRule" />
<versionOsgiRule implementation="org.eclipse.jetty.toolchain.enforcer.rules.RequireOsgiCompatibleVersionRule" />