api / org.gradle.api.tasks.compile / AbstractCompile / setSourceCompatibility

setSourceCompatibility

open fun setSourceCompatibility(sourceCompatibility: String): Unit

Sets the Java language level to use to compile the source files.

Parameters

sourceCompatibility - The source language level. Must not be null.