gradle
8.6

# OutputDirectories

@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = [ElementType.METHOD, ElementType.FIELD])
annotation class OutputDirectories(source)

Marks a property as specifying one or more output directories for a task.

This annotation should be attached to the getter method in Java or the property in Groovy. Annotations on setters or just the field in Java are ignored.

This will cause the task to be considered out-of-date when the directory paths or task output to those directories have been modified since the task was last run.

When the annotated property is a java.util.Map, the keys of the map must be non-empty strings. The values of the map will be evaluated to individual directories as per file.

Otherwise the given directories will be evaluated as per files. Task output caching will be disabled if the outputs contain file trees.

## Functions

annotationType
Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
equals
Link copied to clipboard
abstract fun equals(p: Any): Boolean
hashCode
Link copied to clipboard
abstract fun hashCode(): Int
toString
Link copied to clipboard
abstract fun toString(): String