# setLanguageLevel

open fun setLanguageLevel(languageLevel: IdeaLanguageLevel)(source)

Sets the java language level for the project.

When explicitly set in the build script, this setting overrides any calculated values for Idea project and Idea module.

#### Since

4.0

open fun setLanguageLevel(languageLevel: Any)(source)

Sets the java language level for the project. Pass a valid Java version number (e.g. '1.5') or IDEA language level (e.g. 'JDK_1_5').

See the examples in the docs for IdeaProject.

When explicitly set in the build script, this setting overrides any calculated values for Idea project and Idea module.