# setEnvironment

inline fun ProcessForkOptions.setEnvironment(vararg environment: Pair<String, Any>)(source)(source)
inline fun ProcessForkOptions.setEnvironment(vararg environmentVariables: Pair<String, Any>)(source)(source)

Kotlin extension function for org.gradle.process.ProcessForkOptions.setEnvironment.

#### See also

org.gradle.process.ProcessForkOptions.setEnvironment

@Incubating
inline fun ProcessForkOptions.setEnvironment(vararg environment: Pair<String, Any>)(source)(source)

Pair variant for setting ProcessForkOptions.getEnvironment, added for backward compatibility.

#### Since

9.7.0