api / org.gradle.process / ProcessForkOptions / setEnvironment

setEnvironment

abstract fun setEnvironment(environmentVariables: MutableMap<String, *>): Unit

Sets the environment variable to use for the process.

Parameters

environmentVariables - The environment variables. Must not be null.