api / org.gradle / StartParameter / newBuild

newBuild

open fun newBuild(): StartParameter

Creates the parameters for a new build, using these parameters as a template. Copies the environmental properties from this parameter (eg Gradle user home dir, etc), but does not copy the build specific properties (eg task names).

Return
The new parameters.