api / org.gradle.api.tasks / Console

Console

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.FIELD]) class Console

Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking, because its value only influences the console output of 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 not to be considered out-of-date when the property has changed.

Constructors

<init>

Console()

Attached to a task property to indicate that the property is not to be taken into account for up-to-date checking, because its value only influences the console output of 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 not to be considered out-of-date when the property has changed.