For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

files

abstract fun files(@Nullable paths: Array<@Nullable Any>): TaskOutputFilePropertyBuilder(source)

Registers some output files for this task.

When the given paths is a java.util.Map, then each output file will be associated with an identity. The keys of the map must be non-empty strings. The values of the map will be evaluated to individual files as per file.

Otherwise the given files will be evaluated as per files.

Since

0.9

Parameters

paths

The output files.

See also