# getJavaVersion

@Input
@Optional
@Incubating
abstract fun getJavaVersion(): Property<String>(source)

Java version to be used by generated Java projects. When set, Gradle will use the provided value as the target major Java version for all relevant generated projects. Gradle will validate the number to ensure it is a valid and supported major version.

#### Return

the java version number supplied by the user

#### Since

8.5