Class VersionCheck


  • public class VersionCheck
    extends Object
    A single check for verifying a dependency version. The Rule will check that any dependency starting with the specified group Id prefix will have a version that matches the specified version regex.
    Since:
    4.5RC1
    Version:
    $Id: 1867e706767e3a6d3da999ea21adde634e8f7575 $
    • Constructor Detail

      • VersionCheck

        public VersionCheck()
    • Method Detail

      • setGroupIdPrefix

        public void setGroupIdPrefix​(String groupIdPrefix)
        Parameters:
        groupIdPrefix - see getGroupIdPrefix()
      • getGroupIdPrefix

        public String getGroupIdPrefix()
        Note: This method is called automatically by the Maven Enforcer plugin framework.
        Returns:
        the group id prefix to check against (eg "org.xwiki.commons")
      • setAllowedVersionRegex

        public void setAllowedVersionRegex​(String allowedVersionRegex)
        Parameters:
        allowedVersionRegex - see getAllowedVersionRegex()
      • getAllowedVersionRegex

        public String getAllowedVersionRegex()
        Note: This method is called automatically by the Maven Enforcer plugin framework.
        Returns:
        the regex to match the version dependency against for matching group ids