https://github.com/eldoriarpg/semvertools
A Java library providing tooling for semantic versioning
https://github.com/eldoriarpg/semvertools
hacktoberfest java semver versioning
Last synced: 12 months ago
JSON representation
A Java library providing tooling for semantic versioning
- Host: GitHub
- URL: https://github.com/eldoriarpg/semvertools
- Owner: eldoriarpg
- License: mit
- Created: 2021-06-13T19:10:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-25T13:51:51.000Z (about 1 year ago)
- Last Synced: 2025-04-25T14:48:35.092Z (about 1 year ago)
- Topics: hacktoberfest, java, semver, versioning
- Language: Java
- Homepage:
- Size: 281 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# SemVerTools
This is a Java library providing tooling for semantic versioning.
Currently, it can mainly parse and compare valid semver strings.
## Example Usage
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
```java
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);
}
```
## Using this library
As this library is in an early development state, it is not deployed to any maven repository.
## Contributing to this project
If you want to contribute, please check out the [Contribution Notes](CONTRIBUTING.md)
## Issues, Ideas, Questions
If you found a bug, please report it to the [issue tracker](https://github.com/eldoriarpg/SemVerTools/issues).
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](https://github.com/eldoriarpg/SemVerTools/discussions/new).
## License
SemVerTools is licenced under the MIT license.