HHH-12816 Enable the experimental features of ByteBuddy when building with JDK 11

This commit is contained in:
Guillaume Smet 2018-07-17 19:33:06 +02:00
parent dde8744ca3
commit 9ca6b1a3cf
1 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,12 @@ processTestResources {
}
}
// Enable the experimental features of ByteBuddy with JDK 11
test {
if ( JavaVersion.current().isJava11Compatible() ) {
systemProperty 'net.bytebuddy.experimental', true
}
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~