Skip to content

Commit

Permalink
Guard java9+ warn option in test config
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Apr 28, 2020
1 parent 3f1a983 commit f8db1a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ public static void configureTestTasks(Project project) {
test.systemProperty("java.locale.providers", "SPI,JRE");
} else {
test.systemProperty("java.locale.providers", "SPI,COMPAT");
test.jvmArgs("--illegal-access=warn");
}
});

Expand All @@ -272,7 +273,6 @@ public static void configureTestTasks(Project project) {
test.jvmArgs(
"-Xmx" + System.getProperty("tests.heap.size", "512m"),
"-Xms" + System.getProperty("tests.heap.size", "512m"),
"--illegal-access=warn",
"-XX:+HeapDumpOnOutOfMemoryError"
);

Expand Down

0 comments on commit f8db1a5

Please sign in to comment.