createVersion

fun createVersion(major: Int, minor: Int, patch: Int, block: Version.VersionBuilder.() -> Unit = {}): Version

Creates a new Version object with the specified major, minor, and patch version numbers, and applies the provided configuration block.

Return

A new Version object with the specified version numbers and applied configuration.

Parameters

major

The major version number.

minor

The minor version number.

patch

The patch version number.

block

An optional configuration block to apply to the newly created Version object. If not provided, the default values will be used.