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.

sync

abstract fun sync(action: Action<in SyncSpec>): WorkResult(source)

Synchronizes the contents of a destination directory with some source directories and files. The given action is used to configure a SyncSpec, which is then used to synchronize the files.

Return

WorkResult that can be used to check if the sync did any work.

Since

6.0

Parameters

action

action Action to configure the SyncSpec.