Skip to content

Commit

Permalink
Add 'opens' for java.io libraries to unblock build (#1616)
Browse files Browse the repository at this point in the history
* Add  for java.io libraries to unblock build
* Only add the argument if java version is 9+ when opens was added

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied authored Feb 15, 2022
1 parent dc99569 commit f8ec31e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ testsJar {

test {
maxParallelForks = 3
jvmArgs "-Xmx3072m"
jvmArgs += "-Xmx3072m"
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
jvmArgs += "--add-opens=java.base/java.io=ALL-UNNAMED"
}
retry {
failOnPassedAfterRetry = false
maxFailures = 30
Expand Down

0 comments on commit f8ec31e

Please sign in to comment.