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.

getBuildDir

abstract fun getBuildDir(): File(source)

Deprecated

Use getLayout().getBuildDirectory() instead

Returns the build directory of this project. The build directory is the directory which all artifacts are generated into. The default value for the build directory is projectDir/build

Return

The build directory. Never returns null.

Since

0.7