Closures are neither inputs nor outputs
Those properties are not needed for calculating incremental build hashes. Assigning the annotation is not useful without an additional input or output annotation.
package com.bmuschko.gradle.docker.tasks
import org.gradle.api.internal.ConventionTask
-import org.gradle.api.tasks.Optional
+import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction
abstract class AbstractReactiveStreamsTask extends ConventionTask {
@@ -24,19 +24,19 @@ abstract class AbstractReactiveStreamsTask extends ConventionTask {
/**
* Closure to handle the possibly throw exception
*/
- @Optional
+ @Internal
Closure onError
/**
* Closure to handle results
*/
- @Optional
+ @Internal
Closure onNext
/**
* Closure to handle task completion
*/
- @Optional
+ @Internal
Closure onComplete
@TaskAction
