I need to import a grails project to IntelliJ IDEA.
(I am very new to IntelliJ, grails, groovy).
When I try to build the project, the following error is obtained for each of the modules: Error:Cannot compile Groovy files: no Groovy library is defined for module ''
Would you know how I can fix this - how to correctly import the project - since I believe a Grails installation contains a Groovy library.
When I import into GGTS (as a Grails project), the project builds ok.
Prerequisite: you need the Ultimate Edition of IntelliJ IDEA to get Grails support (see Frameworks and Technologies in the community/ultimate edition comparison)
With the Ultimate Edition you..
- use File/Open.. to open the project
- click the Configure SDK link in the green popup that appears on the top right (Grails SDK not found: Module 'import' has no Grails SDK. Configure SDK)
- create the Grails SDK
- if the green pop up is not visible anymore you can open the Event Log (bottom right). There you will find the message from the pop up and you can continue at 3.
In Intellij 14 I have clicked right mouse button on project and choose Open Module Settings, then Modules. I have grails added before, I needed to add groovy, so Add/Library and choose directory with groovy.