Package io.github.joke.conventionalversion.calc
@NullMarked
package io.github.joke.conventionalversion.calc
The version calculation core: a pure function from repository facts to a version string.
Nothing in this package references a Gradle type, reads a file or runs a process. That is what makes it exhaustively testable without a Gradle daemon, and it is why this package alone carries a 100% mutation coverage threshold.
-
ClassDescriptionHow much of the version a set of commits moves.Reduces a range of commits to the single bump it implies.One commit in the analysed range, with the paths it touched.Extracts the version-relevant facts from a raw commit message.A single commit reduced to the facts that affect the version.The repository facts the calculation needs, already gathered.A
major.minor.patchversion, without pre-release or build metadata.Turns gathered repository facts into a version, predicting what release-please will publish.The inputs that change the calculated number, named after their release-please counterparts so a divergence between the two configurations is greppable.The outcome of a calculation.