HHH-14371 Open java.base/java.security and java/base/java.lang to the unnamed module in tests

Weld needs this, in CDI tests.

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
Yoann Rodière 2020-12-14 11:53:52 +01:00
parent f2a866e0af
commit 0dd322d4be
No known key found for this signature in database
GPG Key ID: B8D049359DC35ABC
1 changed files with 3 additions and 0 deletions

View File

@ -265,6 +265,9 @@ test {
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
// See org.hibernate.boot.model.naming.NamingHelperTest.DefaultCharset.set
jvmArgs( ['--add-opens', 'java.base/java.nio.charset=ALL-UNNAMED'] )
// Weld needs this to generate proxies
jvmArgs( ['--add-opens', 'java.base/java.security=ALL-UNNAMED'] )
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
}
beforeTest { descriptor ->