diff --git a/hibernate-osgi/hibernate-osgi.gradle b/hibernate-osgi/hibernate-osgi.gradle index 5a0bcb4b69..5a438d02ae 100644 --- a/hibernate-osgi/hibernate-osgi.gradle +++ b/hibernate-osgi/hibernate-osgi.gradle @@ -17,7 +17,10 @@ ext { paxExamVersion = '4.12.0' } -test.enabled = true +if ( JavaVersion.current().isJava11Compatible() ) { + logger.warn( '[WARN] Skipping all tests for hibernate-osgi due to Karaf/Pax-Exam issues with latest JDK 11' ) + test.enabled = false +} sourceSets { test {