abstract fun property(name: String, value: Any): TaskInputPropertyBuilder
Overrides CompatibilityAdapterForTaskInputs.property
Registers an input property for this task. This value is persisted when the task executes, and is compared against the property value for later invocations of the task, to determine if the task is up-to-date.
The given value for the property must be Serializable, so that it can be persisted. It should also provide a useful equals()
method.
You can specify a closure or Callable
as the value of the property. In which case, the closure or Callable
is executed to determine the actual property value.