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(action: Action<in CopySpec>): CopySpec(source)

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

Return

The CopySpec

Since

8.5

Parameters

action

Action to configure the CopySpec


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

Return

a newly created copy spec

Since

8.5