To determine the groovy version in a script use the following code snippet
1 println GroovySystem.getVersion()
2.4.5
tags: system