# setDestinationDir

open fun setDestinationDir(destinationDir: File)(source)

### Deprecated

Sets the directory to generate the `.class` files into.

#### Deprecated

Use getDestinationDirectory.set() instead. This method will be removed in Gradle 9.0.

#### Parameters

destinationDir

The destination directory. Must not be null.

open fun setDestinationDir(destinationDir: Provider<File>)(source)

### Deprecated

Sets the directory to generate the `.class` files into.

#### Since

4.0

#### Deprecated

Use getDestinationDirectory.set() instead. This method will be removed in Gradle 9.0.

#### Parameters

destinationDir

The destination directory. Must not be null.