Chariot Training Classes

Training Courses

I run Chariot's training and mentoring services. We provide training in AngularJS, HTML5, Spring, Hibernate, Maven, Scala, and more.

Chariot Education Services

Technology

Chariot Emerging Tech

Learn about upcoming technologies and trends from my colleagues at Chariot Solutions.

Resources

Chariot Conferences

Podcasts

« Philly Spring User Group Meeting Tonight 11/19 | Main | Chariot TechCast reaches 40th episode (middle age?) »
Thursday
Oct222009

SpringSource Tool Suite 2.2.0 and Grails

Note - this is potentially a second option.  According to this link you just have to select both plugins (for some reason when I downloaded the tool suite and tried the artifact wasn't there for the codehaus groovy core plugin).  Try the above link first, then if that doesn't work, go ahead and follow the instructions below.

Ken

[original message]

Correlated with this STS forums post:

http://forum.springsource.org/showthread.php?t=79409

Grails is not included automatically in the new STS 2.2.0 release just issued on Wednesday 10/12.  You have to go to the Add New Software menu and add it from the optional STS tools menu.

If you're having trouble with installing Grails because it complains about a missing dependency, add the following repository (in Add New Software) and restart STS:

http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.5/

If that doesn't work, manually add the groovy core feature from that library while adding Grails.  At that point you should be off to the races.

It's not IntelliJ Idea yet, but they are committed to getting things working in the IDE.  Right now, based on my own hacking, I see you can:

  • Hit Command-G (CTRL-G for non-apple people) and get the 'enter a grails command' yellow tool popup.  This is great for any create-domain-class etc.
  • Run as Grails Command (run-app), Groovy Shell, added to right click menu.
  • Run as JUnit Test for Grails test classes
  • Although the debugger complains that it can't debug, due to missing line number information, click the ignore future warnings checkbox - it works fine.  Got it to debug a bootstrap and a controller method.

That's it so far, pretty impressive.  I noted you have to hit F5 if you add a plugin or other artifact, as it didn't seem to refresh the file system (gdsflex adds a views/flex and views/swf directory, for example).  However I think you can turn an auto-refresh setting on in the IDE.

Now if I could just configure the flex plugin from Adobe on the same instance, I could actually get a flex and grails project working in a single IDE instance.  Yeah…  Time to try to break my configuration!

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (5)

You may want to check out this site for an even simpler way to add Groovy and Grails to STS.

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

November 2, 2009 | Unregistered CommenterBrent Baxter

Completely agree!!! I noticed that after this blog entry. I'll have to sunset it when I get a chance.

November 11, 2009 | Registered CommenterKen Rimple

Cool,
Some really interesting information regarding SpringSource Tool Suite 2.2.0 and Grails,
Anyway, thanks for the post

January 15, 2010 | Unregistered Commenterbespoke software

I do completed all the process at step "Hit Command-G (CTRL-G for non-apple people) and get the 'enter a grails command' yellow tool popup. This is great for any create-domain-class etc." I am facing difficulty could you please help me?

March 16, 2010 | Unregistered CommenterJulius

What difficulty are you facing?

March 26, 2010 | Registered CommenterKen Rimple

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>