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.

dir

abstract fun dir(options: Map<String, Any>, dir: Any)(source)

Registers an extra output dir and the builtBy information. Useful for generated resources.

See example at SourceSetOutput

Since

1.0

Parameters

options

- use 'builtBy' key to configure the 'builtBy' task of the dir

dir

- will be resolved as file


abstract fun dir(dir: Any)(source)

Registers an extra output dir. Useful for generated resources.

See example at SourceSetOutput

Since

1.0

Parameters

dir

- will be resolved as file