Package org.gradle.api.tasks

# Annotation Type LocalState

@Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface 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