Class VersionUtil
java.lang.Object
com.thirtysevenaudits.util.VersionUtil
Resolves the Maven project version for a class's artifact. Tries, in order:
Implementation-Versionfrom the main section ofMETA-INF/MANIFEST.MFfor the JAR or directory that contains the anchor classPackage.getImplementationVersion()for the anchor class's packageMETA-INF/maven/.../pom.properties(versionkey) on the classpath
pom.properties.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringresolveVersion(Class<?> anchor) Same asresolveVersion(Class, String, String)using this module's Maven coordinates.static StringresolveVersion(Class<?> anchor, String groupId, String artifactId)
-
Method Details
-
resolveVersion
Same asresolveVersion(Class, String, String)using this module's Maven coordinates. -
resolveVersion
-