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 committed by Sanne Grinovero
parent 27c5980a20
commit 8e3bf43a18
1 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,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 ->