From c6671d504b811c17662f38eb1279895f5df8ec3d Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 29 May 2019 19:44:00 +0200 Subject: [PATCH] HHH-13421 Disable OSGi testing for JDK 11+ --- hibernate-osgi/hibernate-osgi.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {