There are a variety of ways to get the Groovy environment setup.
Binary download and installation β Go to the link www.groovy-lang.org/download.html to get the Windows Installer section. Click on this option to start the download of the Groovy installer.
Once you launch the installer, follow the steps given below to complete the installation.
Step1 β Select the language installer.
Step2 β Click the Next button in the next screen
Step3 β Click the βI Agreeβ button.
Step4 β Accept the default components and click the Next button.
Step5 β Choose the appropriate destination folder and then click the Next button.
Step6 β Click the Install button to start the installation
Step7 β Once the installation is complete, click the Next button to start the configuration.
Step8 β Choose the default options and click the Next button.
Step9 β Accept the default file associations and click the Next button.
Step10 β Click the Finish button to complete the installation.
Once the above steps are followed, you can then start the groovy shell which is part of the Groovy installation that helps in testing our different aspects of the Groovy language without the need of having a full-fledged integrated development environment for Groovy. This can be done by running the command groovysh from the command prompt.
If you want to include the groovy binaries as part of you maven or gradle build, you can add the following lines
Gradle
'org.codehaus.groovy:groovy:2.4.5'
Maven
<groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> <version>2.4.5</version>
Next Topic:-Click Here