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