Search code examples
grailsgroovy

Is there any way to know which groovy version used in grails project?


From grails project, we can know which grails version used .Like that can i get groovy version?


Solution

  • You can look in the install directory under lib. For example in Grails 2.2.3 it's lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.8.jar so the version is 2.0.8.

    If you want to find the value programmatically at runtime, call GroovySystem.getVersion() to get the current version string.