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.

RepositoryResourceAccessor

Provides access to resources on an artifact repository. Gradle takes care of caching the resources locally. The scope of the cache may depend on the accessor: users should refer to the javadocs of the methods providing an accessor to determine the scope.

Since

4.0

Functions

Link copied to clipboard
abstract fun withResource(relativePath: String, action: Action<in InputStream>)
Perform an action on the contents of a remote resource.