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.

uri

fun uri(path: Any): URI(source)

Resolves a file path to a URI, relative to this script's target base directory.

Evaluates the provided path object as described for file, with the exception that any URI scheme is supported, not just file: URIs.

Since

4.7