We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 859a87f commit ed4bf10Copy full SHA for ed4bf10
buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
@@ -263,6 +263,8 @@ class BuildPlugin implements Plugin<Project> {
263
dockerBinary = '/usr/bin/docker'
264
} else if (new File('/usr/local/bin/docker').exists()) {
265
dockerBinary = '/usr/local/bin/docker'
266
+ } else {
267
+ dockerBinary = null
268
}
269
final int exitCode
270
final String dockerErrorOutput
@@ -313,9 +315,7 @@ class BuildPlugin implements Plugin<Project> {
313
315
if (rootProject.buildDocker) {
314
316
rootProject.requiresDocker.add(task)
317
} else {
- // do not overwrite an existing onlyIf closure
- final Closure onlyIf = task.onlyIf
318
- task.onlyIf { onlyIf && false }
+ task.enabled = false
319
320
321
0 commit comments