# 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.

#### Parameters

path

The path.

#### Throws

org.gradle.api.UnknownProjectException

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.

#### Parameters

projectDir

The project directory.

#### Throws

org.gradle.api.UnknownProjectException

If no project with the given path exists.