Groovy, like Clojure, is designed for the JVM. It was written to enable features like closures and dynamic typing from popular languages like Python and Ruby to be used by Java developers. It uses a Java-like syntax, making it familiar to those programmers. It can be compiled into standard Java bytecode and used within any Java project. It can also be used dynamically for scripting, templating, or writing unit tests.
To use Groovy on Ubuntu, you must first install a JVM. Then, you need the package
groovy. You can then run Groovy code in a shell by entering
groovysh at the command line, in an interactive console by entering
groovyConsole, or run a specific Groovy script by entering the script file’s name at the command line prefaced by ...