Package org.gradle.api.tasks

# Annotation Interface OutputFile

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

Marks a property as specifying an output file 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.

This will cause the task to be considered out-of-date when the file path or contents are different to when the task was last run.