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.

getTotal

abstract fun getTotal(): Long(source)

The total amount of work that the build operation is in the progress of performing, or -1 if not known.

Return

The total amount of work, or -1 if not known.

Since

3.5