setTargetCompatibility

open fun setTargetCompatibility(targetCompatibility: JavaVersion)

Sets the target compatibility for the compiler.