HHH-13415 Add more comments where we disable OSGi tests with JDK11

Karaf or Pax Exam (don't know which) has serious issues with JDK 11.0.3.
This commit is contained in:
Yoann Rodière 2019-05-27 15:03:31 +02:00 committed by Guillaume Smet
parent ab527c0bd8
commit 433e12b371
1 changed files with 18 additions and 0 deletions

View File

@ -17,11 +17,29 @@ ext {
paxExamVersion = '4.12.0'
}
/*
* With the current karaf/pax-exam versions and with JDK11.0.3,
* we get errors like "java.lang.IllegalStateException: Unknown protocol: jrt".
*
* This is suspiciously similar to the problems we had on Hibernate Search,
* and we gave up the idea of fixing those after a few hours.
*
* Copy-pasting the explanation from Search (not sure it applies here, but it's likely):
* > Upgrading to Karaf 4.2.5 fixes that, but then we get errors about "/karaf.log" not being accessible.
* > Upgrading once again to Pax-exam 4.13.1 fixes that, but then startup looks stuck at some point,
* > without any particular error even if we raise all the different log levels to "trace".
* > Upgrading pax-url to 2.6.1 to be in line with the versions in the Karaf pom doesn't change anything.
* > Strangely, with these upgrades, everything still works fine with JDK8,
* > but we get in trouble with JDK11.0.0 and above.
* > A bit ironic since the problems we were trying to solve initially only affected JDK11.0.3,
* > not JDK11.0.0.
*/
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 {
// send javac output and resource copying to the same output directory for test