22 October 2009 ~ 4 Comments

Installing SpringSource Tool Suite (STS) with Groovy and Grails Support

UPDATE There’s an excellent article on the Grails website that walks through installing and using STS with Grails support. I recommend you use that guide instead of the one below.

STS 2.2.0 was released today with support for Groovy and Grails development. If you’re new to STS, the route to getting everything working might not be clear. The following walks you through installing STS, the Groovy plugin, and finally, the Grails plugin.

  1. First download and install STS. STS comes bundled with a full Eclipse installation, so you don’t need to download Eclipse first.
  2. Now for the Groovy plugin (required for Grails). Open STS, and go to Help -> Install New Software. Add the Groovy Codehaus site: http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/. Now install the Groovy plugin from the site you just added. I installed 2 plugins actually, the Groovy Compilers and Groovy-Eclipse plugin options. Restart STS when the install is complete.
  3. Now you can install the Grails plugin. In STS, go to Help -> Install New Software again. This time choose the Spring Source Update Site for Eclipse 3.5. Under Extensions / STS, choose the SpringSource Tool Suite Grails Support. Install and restart STS.
  4. Create a new Grails project by going to the new project wizard and selecting Grails Project under the Groovy folder.
  5. The project creation screen will say that you don’t have a Grails installation configured. Just click the Configure Grails Installations… link, then Add, then Browse, and navigate to <YOUR_STS_INSTALL_DIR>/grails-<version> and choose that directory. Then give it a name and click OK.
  6. Give the project a name and click OK to create a new Grails project. Give Eclipse a few seconds to finish creating your Grails project and you should be ready to go.

That’s as far as I’ve gotten so far. If you’ve got any tips or advice, please feel free to leave a comment. Here’s to hoping that the Groovy and Grails plugins are high quality!

Enjoyed this post? Click to get future articles delivered by email or get the RSS feed.

4 Responses to “Installing SpringSource Tool Suite (STS) with Groovy and Grails Support”

  1. Daniel 15 November 2009 at 10:05 am Permalink

    Thanks, this proved very useful. Just got it working on Fedora x64.

  2. jonchase 16 November 2009 at 6:53 am Permalink

    Daniel – Glad to be of help. Here’s another blog post from mrhaki with a walkthrough of the installation as well: http://mrhaki.blogspot.com/2009/10/adding-groovy-and-grails-support-to.html

  3. Jon Chase 19 November 2009 at 2:14 am Permalink

    …and here’s what appears to be the official install docs from SpringSource: http://www.grails.org/STS+Integration

  4. Gil 1 February 2010 at 11:11 am Permalink

    Grails – STS Integration
    http://www.grails.org/STS+Integration


Leave a Reply