project

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

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

If no project with the given path exists.


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

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

If no project with the given path exists.


abstract fun project(path: String, configureAction: Action<in Project>): Project(source)

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.

Since

3.4

Parameters

path

The path.

configureAction

The action to use to configure the project.

Throws

If no project with the given path exists.