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
Make sure that the desired SDK is downloaded and installed on your computer, and the libraries are properly configured.
Also, make sure that Grails plugin is enabled in IntelliJ IDEA. The plugin is bundled with IntelliJ IDEA and activated by default. If the plugin is not enabled, enable the plugin.
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:
Please note that the Plugins option is available only for the earlier Grails versions up to version 2.3.0.
- 11.1+Access to Groovy console in Grails applications ( ).