Schema
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
}
}Content copied to clipboard
Return
Parameters
Default Schema Builder. prefixes
Defines the beginning of a version, e.g. v or v.
Default Schema Builder. divider
The symbol that is used to divide the version components, e.g. . or -
Default Schema Builder. classifier
Version classifier