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 92f4758889
commit 2733a3cb09
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
}
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~