api / org.gradle.api / Project / setBuildDir

setBuildDir

abstract fun setBuildDir(path: File): Unit

Sets the build directory of this project. The build directory is the directory which all artifacts are generated into.

Parameters

path - The build directory

Since
4.0

abstract fun setBuildDir(path: Any): Unit

Sets the build directory of this project. The build directory is the directory which all artifacts are generated into. The path parameter is evaluated as described for #file(Object). This mean you can use, amongst other things, a relative or absolute path or File object to specify the build directory.

Parameters

path - The build directory. This is evaluated as per #file(Object)