gradle
8.3

# project

abstract fun project(path: String): Project

Locates a project by path. If the path is relative, it is interpreted relative to this project.

#### Return

The project with the given path. Never returns null.

#### Parameters

path

The path.

#### Throws

UnknownProjectException

If no project with the given path exists.

abstract fun project(path: String, @DelegatesTo(value = Project::class) configureClosure: Closure): Project

Locates a project by path and configures it using the given closure. If the path is relative, it is interpreted relative to this project. The target project is passed to the closure as the closure's delegate.

#### Return

The project with the given path. Never returns null.

#### Parameters

path

The path.

configureClosure

The closure to use to configure the project.

#### Throws

UnknownProjectException

If no project with the given path exists.

abstract fun project(path: String, configureAction: Action<out Any>): Project

Locates a project by path and configures it using the given action. If the path is relative, it is interpreted relative to this project.

#### Return

The project with the given path. Never returns null.

#### Parameters

path

The path.

configureAction

The action to use to configure the project.

#### Throws

UnknownProjectException

If no project with the given path exists.