HHH-12807 Force to execute the release task with JDK 8

Considering hibernate-orm-modules tests are disabled with JDK 11, it's
safer to prevent us from running a release with it. And all in all, we'd
better release with JDK 8.
This commit is contained in:
Guillaume Smet 2018-07-15 15:03:40 +02:00
parent 4d057eab2f
commit 6e85dd82f3
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@ task release {
description = "The task performed when we are performing a release build. Relies on " +
"the fact that subprojects will appropriately define a release task " +
"themselves if they have any release-related activities to perform"
// Force to release with JDK 8. Releasing with JDK 11 is not supported yet:
// - the hibernate-orm-modules tests do not run due to an issue with the ASM version currently used by Gradle
doFirst {
if ( !JavaVersion.current().isJava8() ) {
throw new IllegalStateException( "Please use JDK 8 to perform the release." )
}
}
}
task publish {