gradle
8.4

# setTargetCompatibility

abstract fun setTargetCompatibility(value: Any)(source)

Sets the target compatibility used for compiling Java sources.

#### Parameters

value

The value for the target compatibility as defined by toVersion

abstract fun setTargetCompatibility(value: JavaVersion)(source)

Sets the target compatibility used for compiling Java sources.

#### Parameters

value

The value for the target compatibility