HHH-10864 - Allow ORM to be built with Java 9
This commit is contained in:
parent
ae1e89edba
commit
b112e5af3f
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue