HHH-14323 Do not set net.bytebuddy.experimental=true in tests anymore

It's no longer necessary since we upgraded to byte-buddy 1.10.2,
and it causes bytecode to be converted from Java 14 to Java 12 in some
cases (I don't know why).
This commit is contained in:
Yoann Rodière 2019-10-21 14:57:54 +02:00
parent 1b44713d09
commit dfc04d8f5d
No known key found for this signature in database
GPG Key ID: B8D049359DC35ABC
1 changed files with 0 additions and 12 deletions

View File

@ -215,18 +215,6 @@ test {
systemProperty 'file.encoding', 'UTF-8'
}
// Enable the experimental features of ByteBuddy with JDK 15+
test {
//Only safe to attempt to parse the version as an integer since JDK11
if ( JavaVersion.current().isJava11Compatible() ) {
int majorJVMVersionInt = Integer.valueOf(JavaVersion.current().toString());
//Set the -Dnet.bytebuddy.experimental=true property only when we need it:
if (majorJVMVersionInt >= 12) {
systemProperty 'net.bytebuddy.experimental', true
}
}
}
test {
if ( project.findProperty( 'log-test-progress' )?.toString()?.toBoolean() ) {
// Log a statement for each test.