diff --git a/gradle/java-module.gradle b/gradle/java-module.gradle index 4c94813286..d7f08d9660 100644 --- a/gradle/java-module.gradle +++ b/gradle/java-module.gradle @@ -231,6 +231,12 @@ processTestResources { } } +// Enable the experimental features of ByteBuddy with JDK 11 +test { + if ( JavaVersion.current().isJava11Compatible() ) { + systemProperty 'net.bytebuddy.experimental', true + } +} // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~