mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
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() ) {
|
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
|
// we need to exclude tests using Javassist enhancement, which does not properly support
|
||||||
// Java 9 yet - https://issues.jboss.org/browse/JASSIST-261
|
// Java 9 yet - https://issues.jboss.org/browse/JASSIST-261
|
||||||
test {
|
test {
|
||||||
|
@ -86,4 +86,17 @@ tasks."matrix_mariadb" {
|
|||||||
beforeTest { descriptor ->
|
beforeTest { descriptor ->
|
||||||
println "Starting test: " + descriptor
|
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() ) {
|
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
|
// Hikari CP relies on Javassist which we know has issues with Java 9
|
||||||
test.enabled = false
|
test.enabled = false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user