gradle
8.5

# copySpec

abstract fun copySpec(): CopySpec(source)

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

#### Return

The created CopySpec

abstract fun copySpec(configuration: Action<CopySpec>): CopySpec(source)

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

#### Return

The configured CopySpec

#### Parameters

configuration

The block to use to configure the CopySpec.