getVersion

@Nullable
open fun getVersion(): @Nullable String

Returns human-readable version of the semantic version in format: <major>.<minor>.<patch>[-<type>][.<release_number>], e.g. 1.2.3-rc.4. or 1.0.0. The release number is optional and present only for non-normal releases.

Return

The version string or null if the semantic version is not set.

See also

Throws

if the semantic version is invalid.