api / org.gradle.api.initialization / Settings / project

project

abstract fun project(path: String): ProjectDescriptor

Returns the project with the given path.

Parameters

path - The path.

Exceptions

UnknownProjectException - If no project with the given path exists.

Return
The project with the given path. Never returns null.

abstract fun project(projectDir: File): ProjectDescriptor

Returns the project with the given project directory.

Parameters

projectDir - The project directory.

Exceptions

UnknownProjectException - If no project with the given path exists.

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