Schema

inline fun Schema(builder: DefaultSchemaBuilder.() -> Unit = {}): DefaultUpdateSchema

The Schema function is an easy way to creating a io.github.vxrpenter.updater.schema.DefaultUpdateSchema, by providing simple solutions and an easy-to-understand format. If you want to use a more complex function, you can use the DefaultSchemaBuilder.

Example Usage:

val schema = Schema {
prefix = "v"
divider = "."
classifier {
value = "alpha"
divider = "-"
priority = ClassifierPriority.LOW
}
classifier {
value = "beta"
divider = "-"
priority = ClassifierPriority.HIGH
}
classifier {
value = "rc"
divider = "-"
priority = ClassifierPriority.HIGHEST
}
}

Return

the io.github.vxrpenter.updater.schema.DefaultUpdateSchema

Parameters

DefaultSchemaBuilder.prefixes

Defines the beginning of a version, e.g. v or v.

DefaultSchemaBuilder.divider

The symbol that is used to divide the version components, e.g. . or -

DefaultSchemaBuilder.classifier

Version classifier

See also