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

This commit is contained in:
Steve Ebersole 2016-06-18 15:12:23 -05:00
parent ae1e89edba
commit b112e5af3f
3 changed files with 17 additions and 0 deletions

View File

@ -207,6 +207,8 @@ artifacts {
}
if ( JavaVersion.current().isJava9Compatible() ) {
logger.warn( '[WARN] Skipping Javassist-related tests for hibernate-core due to Javassist JDK 9 incompatibility' )
// we need to exclude tests using Javassist enhancement, which does not properly support
// Java 9 yet - https://issues.jboss.org/browse/JASSIST-261
test {

View File

@ -87,3 +87,16 @@ tasks."matrix_mariadb" {
println "Starting test: " + descriptor
}
}
if ( JavaVersion.current().isJava9Compatible() ) {
logger.warn( '[WARN] Skipping Javassist-related tests for hibernate-envers due to Javassist JDK 9 incompatibility' )
// 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/envers/internal/tools/MapProxyTest.class'
exclude 'org/hibernate/envers/test/integration/components/dynamic/AuditedDynamicComponentTest.class'
exclude 'org/hibernate/envers/test/integration/components/dynamic/AuditedDynamicComponentsAdvancedCasesTest.class'
}
}

View File

@ -45,6 +45,8 @@ def osgiDescription() {
}
if ( JavaVersion.current().isJava9Compatible() ) {
logger.warn( '[WARN] Skipping all tests for hibernate-hikaricp due to Javassist JDK 9 incompatibility' )
// Hikari CP relies on Javassist which we know has issues with Java 9
test.enabled = false
}