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.

addInitScript

open fun addInitScript(initScriptFile: File)(source)

Adds the given file to the list of init scripts that are run before the build starts. This list is in addition to the default init scripts.

Since

0.8

Parameters

initScriptFile

The init scripts.