gradle
8.5

# Input

@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
annotation class Input(source)

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. This annotation cannot be used on a java.io.File object. If you want to refer to the file path, independently of its contents, return a String instead which returns the absolute path. If, instead, you want to refer to the contents and path of a file or a directory, use org.gradle.api.tasks.InputFile or org.gradle.api.tasks.InputDirectory respectively.

## Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
toString
Link copied to clipboard
abstract fun toString(): String