Version

class Version(major: Int, minor: Int, patch: Int, build: Int, release: ReleaseType)

Represents a simple version class to use for versioning.

Parameters

major

The major version.

minor

The minor version.

patch

The patch version.

build

The build version, this is only needed if the ReleaseType is not None.

release

The release type to use for the finalized result. Defaults to ReleaseType.None.

Constructors

Link copied to clipboard
fun Version(major: Int, minor: Int, patch: Int, build: Int = 0, release: ReleaseType = ReleaseType.None)

Functions

Link copied to clipboard
open override fun toString(): String