javaVersion

val javaVersion: Property<Int>

The Java version to use for the project. It is used to set the source and target compatibility. This value defaults to the latest version of Java supported by all tools at the release time of the plugin.