HHH-10864 - Allow ORM to be built with Java 9

This commit is contained in:
Steve Ebersole 2016-06-17 10:55:24 -05:00
parent 015be3df6e
commit fdd15307e0
1 changed files with 12 additions and 0 deletions

View File

@ -205,3 +205,15 @@ task testJar(type: Jar, dependsOn: testClasses) {
artifacts {
tests testJar
}
if ( JavaVersion.current().isJava9Compatible() ) {
// we need to exclude tests using Javassist enhancement, which does not properly support
// Java 9 yet - https://issues.jboss.org/browse/JASSIST-261
test {
// rather than wild-cards, keep an explicit list
exclude 'org/hibernate/jpa/test/enhancement/InterceptFieldClassFileTransformerTest.class'
exclude 'org/hibernate/jpa/test/enhancement/runtime/JpaRuntimeEnhancementTest.class'
exclude 'org/hibernate/test/bytecode/enhancement/EnhancerTest.class'
exclude 'org/hibernate/test/bytecode/enhancement/basic/BasicInSessionTest.class'
}
}