From 34fd9ce067272fc4668019d6def50acb7134aad4 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 3 Jun 2019 10:25:52 -0700 Subject: [PATCH] Fix error with test conventions on tasks that require Docker (#42719) --- .../src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy index 894496c8329..e90273ccdbd 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -260,7 +260,7 @@ class BuildPlugin implements Plugin { if (ext.get('buildDocker')) { (ext.get('requiresDocker') as List).add(task) } else { - task.enabled = false + task.onlyIf { false } } }