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.

setSourceCompatibility

Sets the source compatibility used for compiling Java sources.

This property cannot be set if a toolchain has been configured.

Since

4.10

Parameters

value

The value for the source compatibility

See also


abstract fun setSourceCompatibility(value: Any)(source)

Sets the source compatibility used for compiling Java sources.

Since

7.1

Parameters

value

The value for the source compatibility as defined by toVersion