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.

operatingSystem

abstract fun operatingSystem(name: String)(source)

Sets the operating system being targeted.

The operating system is provided as a string name, which is translated into one of the supported operating system types.

Since

2.3

See also

Supported notations.