# copySpec

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

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.