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.

addFile

abstract fun addFile(name: String)(source)

Add a file, if the file location is the same as the file name.

Since

6.0

Parameters

name

name and path of the file.


abstract fun addFile(name: String, url: String)(source)

Add a file.

Since

6.0

Parameters

name

name of the file

url

location of the file, if not located next to the metadata in the repository