There are several task 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