For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

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.

Since

1.0