Skip to content

Commit b256bd4

Browse files
committed
Fix testlib test.
1 parent c3a88cb commit b256bd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

testlib/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ dependencies {
2222
spotbugs { reportLevel = 'high' } // low|medium|high (low = sensitive to even minor mistakes)
2323

2424
apply from: rootProject.file('gradle/special-tests.gradle')
25+
tasks.named('test') {
26+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16)) {
27+
// for Antlr4FormatterStepTest and KtLintStepTest
28+
def args = [
29+
'--add-opens=java.base/java.lang=ALL-UNNAMED'
30+
]
31+
jvmArgs args
32+
}
33+
}
2534

2635
javadoc {
2736
options.addStringOption('Xdoclint:none', '-quiet')

0 commit comments

Comments
 (0)