/*
 * 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 for an input file or output property should not be tracked by Gradle.
 *
 * <p>Untracked inputs or outputs can be considered as locations Gradle is not supposed to understand.
 * Gradle may not understand the locations for different reasons, for example:
 * <ul>
 *     <li>The location contains unreadable files like pipes where Gradle cannot track the content.</li>
 *     <li>Another tool like Git already takes care of keeping the state, so it doesn't make sense for Gradle to do additional bookkeeping.</li>
 *     <li>Prevent Gradle from trying to snapshot a potentially large amount of content if an output location is not exclusively owned by the build.</li>
 * </ul>
 *
 * <p>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 from the build cache.
 *
 * <p>{@link org.gradle.work.InputChanges} cannot be used for a task which has untracked properties,
 * since incremental tasks need to understand their inputs and outputs for them to be correct.
 *
 * <p>This annotation can be attached to properties annotated with {@link InputFile}, {@link InputFiles}, {@link InputDirectory},
 * {@link OutputFile}, {@link OutputFiles}, {@link OutputDirectory}, or {@link OutputDirectories}.
 *
 * @since 7.3
 */
@Incubating
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface Untracked {
}

@@ -990,17 +990,21 @@
 *%0A * %3Cp%3E
-U
+For u
 ntracked
@@ -1011,18 +1011,19 @@
  inputs 
-or
+and
  outputs
@@ -1027,140 +1027,145 @@
 uts 
-can be considered as locations 
 Gradle 
-is
+will
  not 
-supposed to understand
+try to capture their state
 .%0A * 
-Gradle may not understand the locations for different reason
+There can be different reasons for not wanting to track the state of some inputs or output
 s, f
@@ -1775,16 +1775,36 @@
 d never 
+stored in or loaded 
 from the

Apply suggestions from code review