Groovy – Environment

  • Post author:
  • Post category:Groovy
  • Post comments:0 Comments

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.

 environment setup

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.

environment setup

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

 environment setup

Step7 βˆ’ Once the installation is complete, click the Next button to start the configuration.

Step8 βˆ’ Choose the default options and click the Next button.

environment setup

Step9 βˆ’ Accept the default file associations and click the Next button.

Groovy environment setup

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

Leave a Reply