@groovy.transform.CompileStatic class GrailsVersionUtils extends java.lang.Object
Constructor and description |
---|
GrailsVersionUtils
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.lang.String |
getLowerVersion(java.lang.String pluginVersion) Returns the lower version of a Grails version number expression in a plugin |
|
static java.lang.String |
getPluginName(java.lang.Class clazz) Get the name of the a plugin for a particular class. |
|
static java.lang.String |
getPluginVersion(java.lang.Class clazz) Get the version of the a plugin for a particular class. |
|
static java.lang.String |
getUpperVersion(java.lang.String pluginVersion) Returns the upper version of a Grails version number expression in a plugin |
|
static boolean |
isValidVersion(java.lang.String pluginVersion, java.lang.String requiredVersion) Check if the required version is a valid for the given plugin version. |
|
static boolean |
isVersionGreaterThan(java.lang.String leftVersion, java.lang.String rightVersion) Returns true if rightVersion is greater than leftVersion |
|
static boolean |
supportsAtLeastVersion(java.lang.String pluginVersion, java.lang.String requiredVersion) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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