Output File
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. In Kotlin, use the get: use-site target to attach it to the property getter, for example @get:OutputFile. This also works on abstract properties, where the annotation without a use-site target does not compile. Annotations on setters or just the field in Java are ignored.
The parent directory will be created before the task is executed if it does not exist already.
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.
Since
0.8