Groovy 2 Quick Start for macOS
Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with the Latest Groovy 2.x on macOS Unix/BSD Desktop.
Groovy is a Dynamic Language that has Additional power Features inspired by languages like Python, Ruby and Smalltalk like:
- Function Literals
- Support for Collections
- Support for Regular Expressions
- Support for XML Processing
It is Recommended to dispose of a Java 8 installation because Now Groovy 2 Supports the latest Oracle Java JDK 8 Specifications.
-
Open Terminal Window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
Download Latest Groovy 2.x Binary Release.
-
Double-Click on Archive to Extract.
-
Installing Groovy 2 on macOS.
sudo chown -R root:admin $HOME/Downloads/groovy*
sudo mv /tmp/groovy* /opt/groovy2
-
Append Groovy2 to the User Path.
nano $HOME/.profile
Append:
export GROOVY_HOME=/opt/groovy2/nexport PATH=$GROOVY_HOME/bin:$PATH
Load the New Path:
source $HOME/.profile
-
Test Groovy 2 Installation.
groovy -version
-
How to Install Recommended Oracle Java JDK8 on macOS
-
Getting-Started with Groovy 2 Programming.
Click Here to Install Groovy with HomeBrew!