From c1b06a14364dc2e6d3685e7533172b5ff6efab6d Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Thu, 30 May 2019 09:51:46 -0700 Subject: [PATCH] Fix error with test conventions on tasks that require Docker --- .../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 fffbcd273dcb7..cbaf4b77a16df 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy @@ -259,7 +259,7 @@ class BuildPlugin implements Plugin { if (ext.get('buildDocker')) { (ext.get('requiresDocker') as List).add(task) } else { - task.enabled = false + task.onlyIf { false } } }