Verified Commit a9ed8803 authored by AtjonTV's avatar AtjonTV

kLibInf: Try to dynamically load the version from the Manifest

parent 773eb8ee
Pipeline #2124 passed with stages
in 3 minutes and 33 seconds
......@@ -24,7 +24,12 @@ object kLibInf {
* @since 2.0.0
* @author Thomas Obernosterer
*/
val semver = SemVer(4, 1, 0, "dev.5")
val semver: SemVer
get() {
val ver = javaClass.`package`.implementationVendor
return if (ver == null) SemVer(5, 0, 0, "unstable")
else SemVer.parse(ver)
}
/**
* Company creating kLib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment