# When should the task annotations be used?

**URL:** <https://discuss.gradle.org/t/when-should-the-task-annotations-be-used/33626>\
**Category:** Help/Discuss\
**Created:** [October 22, 2019, 9:18pm UTC](https://discuss.gradle.org/t/when-should-the-task-annotations-be-used/33626 "2019-10-22T21:18:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phreed](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@phreed](https://discuss.gradle.org/u/phreed)\
**Post date:** [October 22, 2019, 9:18pm UTC](https://discuss.gradle.org/t/when-should-the-task-annotations-be-used/33626/1 "2019-10-22T21:18:15Z")

</div>

There are several task annotations.  
[https://docs.gradle.org/current/userguide/more\_about\_tasks.html#sec:task\_input\_output\_annotations](https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:task_input_output_annotations)  
See table 1

- @Input
- @InputFile
- @InputDirectory  
etc.  
Should these be used in conjunction with plugin extensions?  
[https://docs.gradle.org/current/userguide/custom\_tasks.html#incremental\_tasks](https://docs.gradle.org/current/userguide/custom_tasks.html#incremental_tasks)
