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.

findProject

@Nullable
abstract fun findProject(path: String): @Nullable ProjectDescriptor(source)

Returns the project with the given path.

Return

The project with the given path. Returns null if no such project exists.

Since

0.7

Parameters

path

The path


@Nullable
abstract fun findProject(projectDir: File): @Nullable ProjectDescriptor(source)

Returns the project with the given project directory.

Return

The project with the given project directory. Returns null if no such project exists.

Since

0.7

Parameters

projectDir

The project directory.