diff --git a/distribution/docker/build.gradle b/distribution/docker/build.gradle index 00fceb9df6a14..56ad936bdfe5d 100644 --- a/distribution/docker/build.gradle +++ b/distribution/docker/build.gradle @@ -142,4 +142,6 @@ assemble.dependsOn "buildDockerImage" // We build the images used in compose locally, but the pull command insists on using a repository // thus we must disable it to prevent it from doing so. // Everything will still be pulled since we will build the local images on a pull -tasks.matching { name == "composePull" }.all { enabled = false } +if (tasks.findByName("composePull")) { + tasks.composePull.enabled = false +}