SpringSource Tool Suite 2.2.0 and Grails
Thursday, October 22, 2009 at 6:19AM 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!
Ken Rimple |
5 Comments |
grails in
Technologies 


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
Completely agree!!! I noticed that after this blog entry. I'll have to sunset it when I get a chance.
Cool,
Some really interesting information regarding SpringSource Tool Suite 2.2.0 and Grails,
Anyway, thanks for the post
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?
What difficulty are you facing?