Skip to content

Commit e386e93

Browse files
committed
Fix test on Java 17 for new groovy.
1 parent 640f6a2 commit e386e93

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib-extra/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,10 @@ dependencies {
2727
// we'll hold the core lib to a high standard
2828
spotbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even minor mistakes)
2929

30-
test { useJUnitPlatform() }
30+
test {
31+
useJUnitPlatform()
32+
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
33+
// needed for EclipseCdtFormatterStepTest
34+
jvmArgs '--add-opens=java.base/java.lang=ALL-UNNAMED'
35+
}
36+
}

0 commit comments

Comments
 (0)