gradle
8.6

# setBuildDir

abstract fun setBuildDir(path: File)(source)

### Deprecated

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

#### Deprecated

Use `getLayout().getBuildDirectory()` and set the org.gradle.api.file.DirectoryProperty

#### Parameters

path

The build directory

abstract fun setBuildDir(path: Any)(source)

### Deprecated

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. This mean you can use, amongst other things, a relative or absolute path or File object to specify the build directory.

#### Deprecated

Use `getLayout().getBuildDirectory()` and set the org.gradle.api.file.DirectoryProperty

#### Parameters

path

The build directory. This is evaluated as per file