Grails part 2 – Setting up the environment
2012/02/14 Leave a comment
Requirements: basic Eclipse usage
Difficulty: introduction
So before we go any further, I’d like to help you setting up a correct environment to use for developing a Grails application.
What you absolutely need is a Grails environment. Everything in Grails can be done using its console. Still, I strongly suggest you to use the Eclipse integration plugins, or the “Spring Tool Suite” from SpringSource, a branded Eclipse distribution especially designed to work with Spring based products (such as Grails, indeed).
Let’s start with the very necessary now. Download Grails from here: http://www.grails.org/Download
I’ll be using Grails 1.3.7 because I really hadn’t time to transition to 2.0 but I don’t think the differences actually impact the basic usage, so it’s up to you.
Once you download and unpack Grails in a convenient position, we’re ready to set up the client.
For this tutorial, we’ll be using STS as it’s the easiest way to get started.
You can download it from here:
http://www.springsource.com/developer/sts
Once you’re done with downloading and unzipping, you should find yourself with a Spring-branded Eclipse installation.
Note: this branded version of Eclipse aims to help in the development process of any Spring based application.
As STS gives you the basic dependencies to use any of the products of the Spring ecosystem, you now have to actually install the “Grails plugin”. As usual (if you’re not used to using Eclipse… your problem!), Help -> Install new Software -> (search for Grails) and finally install the plugin.
You’re almost set to go! Once Eclipse relaunches, go to “Preferences” , search for “Grails” and create a variable item pointing to the location where you unzipped your instance of the Grails platform.
Now you really are set to go