api / org.gradle.api.plugins / JavaPluginConvention / setTargetCompatibility

setTargetCompatibility

open fun setTargetCompatibility(value: Any): Unit

Sets the target compatibility used for compiling Java sources.

Parameters

value - The value for the target compatibility as defined by JavaVersion#toVersion(Object)

open fun setTargetCompatibility(value: JavaVersion): Unit

Sets the target compatibility used for compiling Java sources.

Parameters

value - The value for the target compatibility