This is a Java library providing tooling for semantic versioning.
Currently, it can mainly parse and compare valid semver strings.
To check if an update is available for a program, library, framework, etc., it is a common approach to compare the versions, given as strings.
With SemVerTools, this is as easy as doing
String thisVersion = ...;
String remoteVersion = ...;
SemanticVersion current = SemanticVersion.parse(thisVersion);
SemanticVersion next = SemanticVersion.parse(remoteVersion);
if (next.succeeds(current)) {
System.out.println("New version available: " + next);
}
As this library is in an early development state, it is not deployed to any maven repository.
If you want to contribute, please check out the Contribution Notes
If you found a bug, please report it to the issue tracker. Make sure you don't report a bug that was already reported before.
If you have a feature request, feel free to explain your idea in an issue too.
If you have any questions, feel free to start a discussion.
SemVerTools is licenced under the MIT license.