uri

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

Resolves a file path to a URI, relative to the project directory of this project. Evaluates the provided path object as described for file, with the exception that any URI scheme is supported, not just 'file:' URIs.

Return

The resolved URI. Never returns null.

Parameters

path

The object to resolve as a URI.