Package org.xwiki.tool.enforcer
Class VersionCheck
- java.lang.Object
-
- org.xwiki.tool.enforcer.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 Summary
Constructors Constructor Description VersionCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowedVersionRegex()
Note: This method is called automatically by the Maven Enforcer plugin framework.String
getGroupIdPrefix()
Note: This method is called automatically by the Maven Enforcer plugin framework.void
setAllowedVersionRegex(String allowedVersionRegex)
void
setGroupIdPrefix(String groupIdPrefix)
-
-
-
Method Detail
-
setGroupIdPrefix
public void setGroupIdPrefix(String groupIdPrefix)
- Parameters:
groupIdPrefix
- seegetGroupIdPrefix()
-
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
- seegetAllowedVersionRegex()
-
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
-
-