# 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

#### Since

6.0

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

#### Since

6.0

#### Parameters

configuration

The block to use to configure the CopySpec.