Today we are going to look at the steps involved in Installing Groovy in Ubuntu operating system.
Before you install Groovy, make sure you have installed the Java OpenJDK in your Ubuntu machine. If not you can follow our article on Installing Java OpenJDK in Ubuntu to install it.
Open up Terminal in Ubuntu.
Execute the following commands:
sudo apt-get update sudo apt-get install groovy
To check if Groovy is successfully installed in your machine, you can view the version of Groovy by executing the following command:
sudo groovy -v
This will display the Apache Groovy version similar to the output below: