From 9ca6b1a3cfce767be5d67ecc2c286659c7e2604b Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 17 Jul 2018 19:33:06 +0200 Subject: [PATCH] HHH-12816 Enable the experimental features of ByteBuddy when building with JDK 11 --- gradle/java-module.gradle | 6 ++++++ 1 file changed, 6 insertions(+) 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 + } +} // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~