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.

getVersion

abstract fun getVersion(): Any(source)

Returns the version of this project. Gradle always uses the toString() value of the version. The version defaults to {@value #DEFAULT_VERSION}.

Return

The version of this project. Never returns null.

Since

0.7