Package com.cleanroommc.versioning
Class Versioning
java.lang.Object
com.cleanroommc.versioning.Versioning
Computes a tag-native project version from Git state and branch policy.
-
Method Summary
-
Method Details
-
compute
Computes the version for the given state.- Parameters:
git- Git state at the build commitlabel- the pre-release label commits are counted undermetadata- additional pre-release identifiers, rendered as.<key>.<value>in iteration order- Returns:
- the full version
- Throws:
IllegalArgumentException- if the label or any metadata entry is not a SemVer identifier, or if the branch leads to a version that has already been tagged
-