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.

setProjectDir

abstract fun setProjectDir(dir: File)(source)

Sets the project directory of this project.

Gradle expects project directories to exist and be writable.

Since

0.7

Parameters

dir

The new project directory. Should not be null, and it is expected to exist and be writable.