api / org.gradle.api.resources / TextResourceFactory / fromUri

fromUri

@Incubating abstract fun fromUri(uri: Any): TextResource

Creates a text resource backed by the given uri.

Parameters

uri - a URI as evaluated by org.gradle.api.Project#uri(Object)

Return
a text resource backed by the given uri

Since
4.8