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.

getDuplicatesStrategy

Returns the strategy to use when trying to copy more than one file to the same destination.

The value can be set with a case insensitive string of the enum value (e.g. 'exclude' for EXCLUDE).

This strategy can be overridden for individual files by using eachFile or filesMatching.

Return

the strategy to use for files included by this copy spec.

Since

1.7

See also