HHH-5144 Dont restrict on jdk5 in hibernate core development

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19275 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-04-22 04:32:52 +00:00
parent 52495816de
commit 75781d3d02
1 changed files with 23 additions and 1 deletions

View File

@ -116,6 +116,28 @@
<groupId>org.jboss.maven.plugins</groupId>
<artifactId>maven-jdocbook-style-plugin</artifactId>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source><![CDATA[
def javaVersion=System.getProperty("java.version")
if(!javaVersion.startsWith("1.5")){
fail("Please using JDK5 to do Hibernate release!")
}
]]>
</source>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -132,7 +154,7 @@
<rules>
<requireJavaVersion>
<!-- require JDK 1.5 to run the build -->
<version>[1.5,1.6)</version>
<version>[1.5,)</version>
</requireJavaVersion>
<requireMavenVersion>
<!-- we need at least Maven 2.0.8 because of a bug fix affecting our antlr usage -->