Tuesday, 28 December 2010

Which Groovy version does my Grails have?

As this is my first blog post, hello world!
Now that the formalities have been dealt with, here's a question I've had today: what version of Groovy does my Grails installation contain? Ok, that one is easy, hardly worth blogging about, but here's the quick answer anyway: start your favorite Groovy/Grails shell (two obvious candidates are grails shell and grails console) and execute the following:
println org.codehaus.groovy.runtime.InvokerHelper.version
But unfortunately, my Groovy version did not support a feature I wanted, so the next question was, what version of Grails would I have to upgrade to in order to get my feature? After some digging on the Grails JIRA, I compiled a table of Groovy/Grails versions that hopefully will help somebody else as well.
Grails versionGroovy version
1.3.71.7.8
1.3.6
1.3.51.7.5
1.3.41.7.4
1.3.3
1.3.21.7.3
1.3.1
1.3
1.3 RC2
1.3 RC1
1.3 M11.7
1.2.5
1.2.4
1.2.3
1.2.21.6.8
1.2.1
1.2
1.2-RC2
1.2-RC1
1.2-M41.6.5
1.2-M3
1.2-M21.6.4
1.2-M1
1.1.2
1.1.1
1.1
1.1-RC2
1.1-RC11.6
1.1-beta3
1.1-beta2
1.1-beta1
1.0.5
1.0.4
1.0.3
1.0.2
1.01.5