@CompileStatic class GrailsVersionUtils extends Object
Constructor and description |
---|
GrailsVersionUtils() |
Type Params | Return Type | Name and description |
---|---|---|
|
static String |
getLowerVersion(String pluginVersion) Returns the lower version of a Grails version number expression in a plugin |
|
static String |
getPluginName(Class clazz) Get the name of the a plugin for a particular class. |
|
static String |
getPluginVersion(Class clazz) Get the version of the a plugin for a particular class. |
|
static String |
getUpperVersion(String pluginVersion) Returns the upper version of a Grails version number expression in a plugin |
|
static boolean |
isValidVersion(String pluginVersion, String requiredVersion) Check if the required version is a valid for the given plugin version. |
|
static boolean |
isVersionGreaterThan(String leftVersion, String rightVersion) Returns true if rightVersion is greater than leftVersion |
|
static boolean |
supportsAtLeastVersion(String pluginVersion, String requiredVersion) |
Returns the lower version of a Grails version number expression in a plugin
Get the name of the a plugin for a particular class.
Get the version of the a plugin for a particular class.
Returns the upper version of a Grails version number expression in a plugin
Check if the required version is a valid for the given plugin version.
pluginVersion
- The plugin versionrequiredVersion
- The required versionReturns true if rightVersion is greater than leftVersion @return