api / org.gradle.plugins.ide.idea.model / IdeaProject / getLanguageLevel

getLanguageLevel

open fun getLanguageLevel(): IdeaLanguageLevel

The default Java language Level to use for this project.

Generally, it isn't recommended to change this value. Instead, you are encouraged to set sourceCompatibility and targetCompatibility for your Gradle projects which allows you to have full control over language levels in Gradle projects, and means that Gradle and IDEA will use the same settings when compiling.

When not explicitly set, this is calculated as the maximum language level for the Idea modules of this Idea project.