api / org.gradle.api.plugins / JavaPluginConvention / setSourceCompatibility

setSourceCompatibility

open fun setSourceCompatibility(value: Any): Unit

Sets the source compatibility used for compiling Java sources.

Parameters

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

open fun setSourceCompatibility(value: JavaVersion): Unit

Sets the source compatibility used for compiling Java sources.

Parameters

value - The value for the source compatibility