IntelliJ IDEA implements Grails technology and allows creating Grails application with the specific folder structure and all the necessary artifacts.
IntelliJ IDEA supports all features of Grails 2.0.0.
In this section:
- Creating a Grails Application Module
- Creating Grails Application from Existing Code
- Configuring Libraries and Dependencies in Grails Applications
- Grails Procedures
Grails Features in IntelliJ IDEA
Grails support in IntelliJ IDEA includes the following features:
- Automated way of creating Grails Applications that provides generation of the specific structure and artifacts.
- Automatic enabling Groovy support in the Grails Application modules, allowing creation of the Groovy classes, interfaces and scripts.
- Execution of the targets.
- Possibility to generate scaffolding.
- Possibility to generate tests.
- Code completion.
- Querying with dynamic finders.
- Dedicated run/debug configuration.
- Grails 2.0.0 features (e.g. Controller actions as Methods, new JUnit Testing API, access to GORM API from Java classes, Detached Criteria, etc.).
- Grails Web Flow.
- Grails Resources plugin.
- Grails Spock.
- Grails Standalone GORM
Grails Changes in the IntelliJ IDEA UI
Once IntelliJ IDEA recognizes the project or module as a Grails application, it introduces the following changes to the UI:
- Grails View tool window is added, and the tool window button appears in the left tool windows bar:
- Grails node is added to the context menu of the respective module in the Grails view:
- Grails node is added to the Tools menu:
- 11.1+Access to Groovy console in Grails applications ( Tools | Groovy Shell ).