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.

project

open fun project(projectPath: String): ProjectDependency(source)

Converts an absolute or relative path to a project into a ProjectDependency. Project paths are separated by colons. This method fails if the project cannot be found.

Return

a ProjectDependency for the given path

Since

7.6

Parameters

projectPath

an absolute or relative path (from the current project) to a project

See also


Returns the current project as a ProjectDependency.

Return

the current project as a dependency

Since

7.6