Skip to content

Commit

Permalink
HHH-13682 Restore the system property net.bytebuddy.experimental=true…
Browse files Browse the repository at this point in the history
… in tests on JDK15+

Turns out it's necessary for JDKs with experimental support.
  • Loading branch information
yrodiere authored and Sanne committed Apr 16, 2020
1 parent 0b4bcce commit 588115b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gradle/java-module.gradle
Expand Up @@ -208,6 +208,15 @@ processTestResources {
}
}

// Enable the experimental features of ByteBuddy with JDK 15+
test {
if ( Integer.valueOf( gradle.ext.testedJavaVersionAsEnum.getMajorVersion() ) >= 15 ) {
logger.warn( "The version of java that will be tested is not supported by Bytebuddy by default. " +
" Setting 'net.bytebuddy.experimental=true'." )
systemProperty 'net.bytebuddy.experimental', true
}
}

test {
if ( project.findProperty( 'log-test-progress' )?.toString()?.toBoolean() ) {
// Log a statement for each test.
Expand Down

0 comments on commit 588115b

Please sign in to comment.