@Incubating @Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface Untracked
For untracked inputs and outputs Gradle will not try to capture their state. There can be different reasons for not wanting to track the state of some inputs or outputs, for example:
If a task has any untracked properties, then Gradle does not do any optimizations for running the task. For example, such a task will always be out of date and never stored in or loaded from the build cache. That means that there is no need to specify the normalization for untracked file inputs.
InputChanges
cannot be used for a task which has untracked properties,
since incremental tasks need to track the state of their inputs and outputs for them to be correct.
This annotation can be attached to properties annotated with InputFile
, InputFiles
, InputDirectory
,
OutputFile
, OutputFiles
, OutputDirectory
, or OutputDirectories
.