diff --git a/.ci/packer_cache.sh b/.ci/packer_cache.sh index ce78ebcc1cae7..04511f81281b9 100755 --- a/.ci/packer_cache.sh +++ b/.ci/packer_cache.sh @@ -21,4 +21,4 @@ export JAVA_HOME="${HOME}"/.java/${ES_BUILD_JAVA} export JAVA8_HOME="${HOME}"/.java/java8 export JAVA11_HOME="${HOME}"/.java/java11 export JAVA12_HOME="${HOME}"/.java/java12 -./gradlew --parallel clean pullFixture --scan -Porg.elasticsearch.acceptScanTOS=true -s resolveAllDependencies +./gradlew --parallel clean --scan -Porg.elasticsearch.acceptScanTOS=true -s resolveAllDependencies diff --git a/build.gradle b/build.gradle index e1ced30f85b85..cc841f7e8af3b 100644 --- a/build.gradle +++ b/build.gradle @@ -616,9 +616,10 @@ if (System.properties.get("build.compare") != null) { allprojects { task resolveAllDependencies { - doLast { - configurations.findAll { it.isCanBeResolved() }.each { it.resolve() } - } + dependsOn tasks.matching { it.name == "pullFixture"} + doLast { + configurations.findAll { it.isCanBeResolved() }.each { it.resolve() } + } } }