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.

setRootDir

abstract fun setRootDir(rootDir: String)(source)

Sets the relative path to the root of the build within the repository. Use an empty string to refer to the root of the repository.

Since

4.10

Parameters

rootDir

The root directory of the build, relative to the root of this repository.