HHH-14371 Add --add-opens options required for Gradle plugin tests
Signed-off-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
parent
6396cd17a2
commit
1acb6fea52
|
@ -36,3 +36,10 @@ else {
|
||||||
logger.warn( "[WARN] Toolchains are not yet supported for Groovy compilation." +
|
logger.warn( "[WARN] Toolchains are not yet supported for Groovy compilation." +
|
||||||
" Using the JDK that runs Gradle for Groovy compilation." )
|
" Using the JDK that runs Gradle for Groovy compilation." )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.test {
|
||||||
|
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
|
||||||
|
// Needs add-opens because Gradle uses illegal accesses to inject... mocks? Something like that.
|
||||||
|
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue