Skip to content

Commit 34fd9ce

Browse files
committed
Fix error with test conventions on tasks that require Docker (#42719)
1 parent 6c50246 commit 34fd9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class BuildPlugin implements Plugin<Project> {
260260
if (ext.get('buildDocker')) {
261261
(ext.get('requiresDocker') as List<Task>).add(task)
262262
} else {
263-
task.enabled = false
263+
task.onlyIf { false }
264264
}
265265
}
266266

0 commit comments

Comments
 (0)