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>): FileCollection(source)

Returns a FileCollection containing the given files, whose locations are the given paths resolved relative to this directory, as defined by files. This method can also be used to create an empty collection, but the collection may not be mutated later.

Return

The file collection.

Since

6.0

Parameters

paths

The paths to the files. May be empty.