Last updated by 3 years ago
Page: STS FAQ, Version:9
This FAQ answers common questions about the Groovy and Grails support in the SpringSource Tool Suite (STS), and is up to date as of the 2.5.2 release of STS.
What is STS?STS is an Eclipse-based IDE that provides a solid development environment for building Spring and Grails-powered enterprise applications.
How do I install the Groovy and Grails support?In this release of STS, both the Groovy and Grails support must be installed through the extensions mechanism. To find the extensions, open the STS Dashboard then click the 'extensions' tab at the bottom of the dashboard window. For detailed instructions about how to do this (including screenshots), see: STS Integration. (You will need to be online for this the install to work.)
Why do I see 2 Grails icons on the extensions page and do I need to install both of them? What about Groovy support?The first icon corresponds to the Grails runtime (the grails package you would typically download from grails.org). The second corresponds to the Grails tool support inside of STS.Groovy tool support is required because it is a prerequisite for Grails tool support.A recent Grails runtime is required for the STS Grails tools to work. However, you do not need to install it from the extensions page if you already have one on your hard drive. In this case, you can instead manually configure your Grails runtime by going to Preferences -> Groovy -> Grails in your running STS.
What versions of Grails does STS support?STS provides full support Grails versions 1.2.0+. Projects that use earlier versions of Grails can still be imported into the workspace, but they must be upgraded to use a more recent version of Grails.
Where do I start with Grails?For a basic description of how to create a new project or import an existing project into STS, also see: STS Integration. This also covers how to use the pop-up Grails console to invoke Grails commands.
What does Groovy-Eclipse do for me?Groovy-Eclipse is a complete IDE for managing Groovy and Grails projects. It includes the standard Eclipse IDE features like content assist, searching, navigation, refactoring, debugging, and version control as well as Groovy-Specific features like type inferencing and support for scripts. The full list of features can be found at Groovy-Eclipse's prioject home page
What does the Grails tool support do for me?In addition to Groovy-Eclipse, STS's Grails tooling provides many useful features for developing Grails applications:
- A plugin manager to browse and install Grails plugins
- A command launcher
- Content assist, navigation, and type inferencing for Grails specific DSLs including dynamic finders
- An editor for GSPs
- Intuitive ways to launch Grails commands
- A Grails project view, specifically tailored towards Grails applications
- Enhanced debugging of Groovy applications, so that Eclipse's Display view and Expressions view can evaluate Groovy expressions.
- Ability to run Grails applications on tcServer, that provides enhanced diagnostics and allows you to analyze your Grails apps using Spring Insight.
How do I increase the memory used to run my Grails commands?Define a Grails Run configuration and pass a high
-XmxNNsetting (e.g., 768 or 1024) in the JVM arguments section