api / org.gradle.api.file / CopySpec / setDuplicatesStrategy

setDuplicatesStrategy

@Incubating abstract fun setDuplicatesStrategy(strategy: DuplicatesStrategy): Unit

The strategy to use when trying to copy more than one file to the same destination. Set to null to use the default strategy, which is inherited from the parent copy spec, if any, or DuplicatesStrategy#INCLUDE if this copy spec has no parent.