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.

copySpec

Creates a {@link CopySpec} which can later be used to copy files or create an archive.

Return

The created CopySpec

Since

4.7


fun copySpec(configuration: CopySpec.() -> Unit): CopySpec(source)

Creates a {@link CopySpec} which can later be used to copy files or create an archive.

Return

The configured CopySpec

Since

4.7

Parameters

configuration

The block to use to configure the CopySpec.