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.

getOutput

abstract fun getOutput(): String(source)

The textual output produced during the build.

This is equivalent to the console output produced when running a build from the command line. It contains both the standard output, and standard error output, of the build.

Return

the build output, or an empty string if there was no build output (e.g. ran with -q)

Since

2.9