Guard java9+ warn option in test config

This commit is contained in:
Ryan Ernst 2020-04-28 14:32:40 -07:00
parent 3f1a983ecb
commit f8db1a56f8
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
1 changed files with 1 additions and 1 deletions

View File

@ -254,6 +254,7 @@ public class ElasticsearchJavaPlugin implements Plugin<Project> {
test.systemProperty("java.locale.providers", "SPI,JRE");
} else {
test.systemProperty("java.locale.providers", "SPI,COMPAT");
test.jvmArgs("--illegal-access=warn");
}
});
@ -272,7 +273,6 @@ public class ElasticsearchJavaPlugin implements Plugin<Project> {
test.jvmArgs(
"-Xmx" + System.getProperty("tests.heap.size", "512m"),
"-Xms" + System.getProperty("tests.heap.size", "512m"),
"--illegal-access=warn",
"-XX:+HeapDumpOnOutOfMemoryError"
);