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.

environment

open fun environment(name: String, value: Any): T(source)

Adds an environment variable to the environment for this process.


open fun environment(environmentVariables: Map<String, out Any>): T(source)

Adds some environment variables to the environment for this process.