api / org.gradle.tooling.model / GradleModuleVersion / getVersion

getVersion

abstract fun getVersion(): String

The version, for example '1.0'.