@groovy.transform.CompileStatic @groovy.transform.EqualsAndHashCode(includes = ['versionText']) class GrailsVersion extends java.lang.Object
A class to represent a version of Grails for comparison
Constructor and description |
---|
GrailsVersion
(java.lang.String version) |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
compareTo(GrailsVersion o) |
|
static GrailsVersion |
getCurrent() @return Obtains the current Grails version |
|
static boolean |
isAtLeast(java.lang.String requiredVersion) Check whether the current version is at least the given version |
|
static boolean |
isAtLeast(java.lang.String version, java.lang.String requiredVersion) Check whether the version is at least the given version |
|
static boolean |
isAtLeastMajorMinor(int majorVersion, int minorVersion) Check whether the current version is at least the given major and minor version |
|
static boolean |
isAtLeastMajorMinor(java.lang.String version, int majorVersion, int minorVersion) Check whether the current version is at least the given major and minor version |
|
boolean |
isSnapshot() |
|
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), 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() |
The major version
The minor version
The patch version
Information about the snapshot status
The full version text
Check whether the current version is at least the given version
requiredVersion
- The required versionCheck whether the version is at least the given version
version
- The versionrequiredVersion
- The required versionCheck whether the current version is at least the given major and minor version
majorVersion
- The major versionminorVersion
- The minor versionCheck whether the current version is at least the given major and minor version
majorVersion
- The major versionminorVersion
- The minor version