Skip to content

Commit 963f339

Browse files
committed
[Java] Add exports for modules enabled JVMs.
1 parent 0990c77 commit 963f339

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ subprojects {
161161
}
162162

163163
test {
164+
if (JavaVersion.current().ordinal() >= JavaVersion.VERSION_1_9.ordinal()) {
165+
jvmArgs('--add-opens', 'java.base/java.lang.reflect=ALL-UNNAMED')
166+
jvmArgs('--add-exports', 'jdk.unsupported/sun.misc=ALL-UNNAMED')
167+
}
168+
164169
testLogging {
165170
showStandardStreams = true
166171
exceptionFormat = 'full'

0 commit comments

Comments
 (0)