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.

setFinalizedBy

abstract fun setFinalizedBy(finalizedBy: Iterable<out Any>)(source)

Specifies the set of finalizer tasks for this task.

task taskY {
    finalizedBy = ["taskX1", "taskX2"]
}

See here for a description of the types of objects which can be used to specify a finalizer task.

Since

1.7

Parameters

finalizedBy

The tasks that finalize this task.