api / org.gradle.api.tasks / LocalState

LocalState

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

Marks a property as specifying local state for a 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.

Local state is removed when the task is loaded from cache.

Since
4.3

Constructors

<init>

LocalState()

Marks a property as specifying local state for a 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.

Local state is removed when the task is loaded from cache.