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.

project

abstract fun project(path: String): ProjectDescriptor(source)

Returns the project with the given path.

Return

The project with the given path. Never returns null.

Since

0.7

Parameters

path

The path.

Throws

If no project with the given path exists.


abstract fun project(projectDir: File): ProjectDescriptor(source)

Returns the project with the given project directory.

Return

The project with the given project directory. Never returns null.

Since

0.7

Parameters

projectDir

The project directory.

Throws

If no project with the given path exists.