From 42610c6d744006c0be30b15fd034ec2b78ce5684 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 10 Feb 2020 13:49:44 -0800 Subject: [PATCH] Only pull docker images for fixture projects (#52157) --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 263581b80e7..eb2b2206f26 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ */ +import com.avast.gradle.dockercompose.tasks.ComposePull import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin import org.apache.tools.ant.taskdefs.condition.Os import org.elasticsearch.gradle.BuildPlugin @@ -514,7 +515,9 @@ gradle.projectsEvaluated { allprojects { tasks.register('resolveAllDependencies') { - dependsOn tasks.matching { it.name == "pullFixture" } + if (project.path.contains("fixture")) { + dependsOn tasks.withType(ComposePull) + } doLast { configurations.findAll { it.isCanBeResolved() }.each { it.resolve() } }