Skip to content

Commit

Permalink
[#1932] try allowing reflective modification of private fields in jav…
Browse files Browse the repository at this point in the history
…a.util/lang
  • Loading branch information
remkop committed Feb 6, 2023
1 parent 223c874 commit 12c0a98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions picocli-tests-java8plus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ targetCompatibility = 1.8
test {
useJUnitPlatform()
}
tasks.withType(Test.class) {
if (org.gradle.api.JavaVersion.current().isCompatibleWith(
org.gradle.api.JavaVersion.VERSION_18)) {
it.jvmArgs += ['--add-opens java.base/java.util=ALL-UNNAMED',
'--add-opens java.base/java.lang=ALL-UNNAMED']
}
}


dependencies {
api rootProject
Expand Down

0 comments on commit 12c0a98

Please sign in to comment.