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

abstract fun copySpec(closure: Closure): CopySpec(source)

Creates a org.gradle.api.file.CopySpec which can later be used to copy files or create an archive. The given closure is used to configure the org.gradle.api.file.CopySpec before it is returned by this method.

Return

The CopySpec

Since

0.9

Parameters

closure

Closure to configure the CopySpec