Class PluginUtil


  • public class PluginUtil
    extends Object
    • Field Detail

      • semverPattern

        static final Pattern semverPattern
    • Constructor Detail

      • PluginUtil

        public PluginUtil()
    • Method Detail

      • matchesSemver

        public static boolean matchesSemver​(String version)
      • getCurrentProjectVersion

        public static Optional<String> getCurrentProjectVersion()
        Reads the pom.xml file for the current project, and returns the value of the version node.
        Returns:
        the current maven project version