diff --git a/test/fixtures/hdfs-fixture/build.gradle b/test/fixtures/hdfs-fixture/build.gradle index bd4acf4e51505..2c7acb06c0c57 100644 --- a/test/fixtures/hdfs-fixture/build.gradle +++ b/test/fixtures/hdfs-fixture/build.gradle @@ -52,7 +52,7 @@ def hdfs2Jar = tasks.register("hdfs2jar", ShadowJar) { configurations << project.configurations.hdfs2 } -tasks.withType(ShadowJar) { +tasks.withType(ShadowJar).configureEach { dependencies { // exclude(dependency('commons-io:commons-io:2.8.0')) exclude(dependency("com.carrotsearch.randomizedtesting:randomizedtesting-runner:.*")) diff --git a/x-pack/plugin/esql/arrow/build.gradle b/x-pack/plugin/esql/arrow/build.gradle index e8ae4b049cf7d..3bf637080841f 100644 --- a/x-pack/plugin/esql/arrow/build.gradle +++ b/x-pack/plugin/esql/arrow/build.gradle @@ -56,6 +56,6 @@ tasks.named("thirdPartyAudit").configure { ) } -test { +tasks.named("test").configure { jvmArgs('--add-opens=java.base/java.nio=ALL-UNNAMED') }