Only pull docker images for fixture projects (#52157)
This commit is contained in:
parent
88cf8ac0a8
commit
42610c6d74
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue