Marco Vermeulen  created a new tool that supports in keeping track and switching between different versions of Groovy(-influenced) software development kits: GVM .
At the time of writing, GVM namely supports Groovy, Grails, Griffon, Gradle and Vert.x. GVM itself is a command-line tool based on the Bash shell, depending on curl and unzip to be pre-installed on target systems only.
Get it while its hot
The installation is actually a single curl command-line call. Open your command-line and type the following line:
the following output should indicate a successful installation
Once this is done and you restart the terminal, the gvm script should be available in your path.
Installing and Switching Between Multiple Groovy Versions (<= awesome)
Once the gvm command is available, we can call gvm help to see an overview of the supported commands and arguments:
Now let's say we wanted to install multiple Groovy versions. With GVM this ain't no rocket science anymore. To install the most current version of Groovy (or one of the other supported software kits), you have to execute
To install another version of the Groovy programming language, we just have to append the appropriate version number:
And now comes the crux: switching between Groovy, Grails, Griffon, Gradle or Vert.x versions is done with a single line in the command-line:
Switching between different development branches with different framework versions (e.g. of Grails) has been with some pain until now. GVM as a great tool for easily keeping track of and switching between multiple software kit versions.