/*
 * Copyright 2021 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gradle.api.tasks;

import org.gradle.api.Incubating;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Declares that the changes in input file or output property should not be tracked by Gradle
 *
 * @since 7.3
 */
@Incubating
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface Untracked {
}

@@ -911,17 +911,21 @@
 changes 
-i
+for a
 n input 
@@ -979,16 +979,1119 @@
 y Gradle
+.%0A *%0A * %3Cp%3EUntracked inputs or outputs can be considered as locations Gradle is not supposed to understand.%0A * Gradle may not understand the locations for different reasons, for example:%0A * %3Cul%3E%0A *     %3Cli%3EThe location contains unreadable files like pipes where Gradle cannot track the content.%3C/li%3E%0A *     %3Cli%3EAnother tool like Git already takes care of keeping the state, so it doesn't make sense for Gradle to do additional bookkeeping.%3C/li%3E%0A * %3C/ul%3E%0A * %3C/p%3E%0A *%0A * %3Cp%3EIf a task has any untracked properties, then Gradle does not do any optimizations for running the task.%0A * For example such a task will always be out of date and never from the build cache.%3C/p%3E%0A *%0A * %3Cp%3E%7B@link org.gradle.work.InputChanges%7D cannot be used for a task which has untracked properties,%0A * since incremental tasks need to understand their inputs and outputs for them to be correct.%3C/p%3E%0A *%0A * %3Cp%3EThis annotation can be attached to properties annotated with %7B@link InputFile%7D, %7B@link InputFiles%7D, %7B@link InputDirectory%7D,%0A * %7B@link OutputFile%7D, %7B@link OutputFiles%7D, %7B@link OutputDirectory%7D, or %7B@link OutputDirectories%7D.%3C/p%3E
 %0A *%0A * @

Improve Javadoc for `@Untracked`