Groovy
- Is an agile and dynamic language for the Java Virtual Machine
- Builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk
- Makes modern programming features available to Java developers with almost-zero learning curve
- Supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain
- Makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL
- Increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications
- Simplifies testing by supporting unit testing and mocking out-of-the-box
- Seamlessly integrates with all existing Java classes and libraries
- Compiles straight to Java bytecode so you can use it anywhere you can use Java
Add the PPA and Install
To install and track the latest stable version, run the following on the command line:
$ sudo apt-add-repository ppa:groovy-dev/groovy
$ sudo apt-get update
$ sudo apt-get install groovy-ppa
Fresh versions of other multiple series may be installed side-by-side:
$ sudo apt-get install groovy-1.8.x #legacy
$ sudo apt-get install groovy-2.0.x #current stable
Switch between versions by running the following command:
$ sudo update-alternatives --config groovy