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.

getProjectDirectory

@Internal(value = "Task outcome is decided early and should not rely on comparing file trees")
abstract fun getProjectDirectory(): DirectoryProperty(source)

The directory of the generated project, defaults to the directory the project is generated in.

Since

9.5.0