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.

getRelease

Configures the Java language version for this compile task (--release compiler flag).

If set, it will take precedences over the getSourceCompatibility and getTargetCompatibility settings.

This option is only taken into account by the org.gradle.api.tasks.compile.JavaCompile task.

Since

6.6