zafarkhaja / jsemver

Java implementation of the SemVer Specification
MIT License
429 stars 82 forks source link

Get internal version of jsemver itself #60

Closed tresf closed 6 months ago

tresf commented 2 years ago

Can you please provide a method to fetch version information (of any sort, String, Version, etc) from (this) jsemver package? Some libraries store this in the MANIFEST.MF, others offer APIs to fetch it.

At time of writing this, the only way to calculate this information is to parse it from the JAR filename itself, or to obtain the source code and parse it from CHANGELOG.md or README.md

P.S. Thank you for this wonderful library. :)

zafarkhaja commented 1 year ago

Hello Tres!

Added implementation entries to the MANIFEST

Implementation-Title: Java SemVer
Implementation-Version: 0.10.0-SNAPSHOT

And there's also a pom.properties file with the artifact coordinates

artifactId=java-semver
groupId=com.github.zafarkhaja
version=0.10.0-SNAPSHOT

Sorry for the delay and thank you for your contribution!