Only pull docker images for fixture projects (#52157)

This commit is contained in:
Mark Vieira 2020-02-10 13:49:44 -08:00
parent 88cf8ac0a8
commit 42610c6d74
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 4 additions and 1 deletions

View File

@ -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() }
}