Package org.gradle.api.tasks

# Annotation Interface Input

@Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Input

Attached to a task property to indicate that the property specifies some input value for the task.

This annotation should be attached to the getter method in Java or the property in Groovy. Annotations on setters or just the field in Java are ignored.

This will cause the task to be considered out-of-date when the property has changed. When used on a `File` object that refers to a file or directory, the up-to-date check is only dependent on the path and not the contents of the file or directory. To make it depend on the contents, use `InputFile` or `InputDirectory` respectively.