Skip to content

Object-oriented implementation of Semantic Versioning

License

Notifications You must be signed in to change notification settings

kerelape/semver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semver elegantobjects

Object-oriented Semantic Versioning implementation.

How to use

Add dependency to your project:

<dependency>
  <groupId>io.github.kerelape</groupId>
  <artifactId>semver</artifactId>
  <version>0.1.0</version>
</dependency>

Note

Currently the project is only distributed on GitHub packages, so, to use it - read this tutorial

Create a new Version object:

val version = Version("1.2.3-alpha.4+567890")

Get segments of the version:

val major: Number = version.Major() // 1
val minor: Number = version.Minor() // 2
val patch: Number = version.Patch() // 3
val prerelease: Text = version.PreRelease() // alpha.4
val build: Text = version.Build() // 567890

How to contribute

Fork the repository, make some changes, and open a new pull request.

Note

Before you send us the changes, confirm they are nicely formatted by running mvn clean install -Pktlint

About

Object-oriented implementation of Semantic Versioning

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages