diff --git a/plugins/repository-hdfs/build.gradle b/plugins/repository-hdfs/build.gradle index 112731af640..b3ae34012aa 100644 --- a/plugins/repository-hdfs/build.gradle +++ b/plugins/repository-hdfs/build.gradle @@ -228,7 +228,7 @@ if (rootProject.ext.compilerJavaVersion.isJava11()) { ].join(',') } } -if (rootProject.ext.compilerJavaVersion.isJava11()) { +if (rootProject.ext.runtimeJavaVersion.isJava11() || rootProject.ext.compilerJavaVersion.isJava11()) { // TODO remove when: https://github.com/elastic/elasticsearch/issues/31498 integTestHa.enabled = false }