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: