I feel like I\'m missing something simple at this point. I upgraded to grails 2.1.1 from 1.3.7 while running IntelliJ 10, recently I upgraded to IntelliJ 12 and imported al
You do not have to create a new project.
Had the same problem, and it took me quite some search to resolve it:
With Intellij 16 right click on your project in the right hand project pane.
Choose Grails->Configure Grails SDK.
If you're using the grails wrapper I would point to that SDK:
/Users/your user/.grails/wrapper/2.5.2/grails-2.5.2
I found a symlink that points to the latest version in:
~/.sdkman/candidates/grails/current
I'm using SDKMAN 4.0.37
Pointing Intellij at that location will allow you to switch versions using sdkman.
I am working with IntelliJ 12.0.1 ultimate. I have installed Grails 2.3.1 on my computer, but always got errors when trying to specify it as a Grails SDK- "failed to create library. Looks like Grails distribution in specified path is broken. Cannot determine version." I tried with Grails 2.3.0, but got the same error. Then, I tried my luck with Grails 2.2.4, and I could finally get it work.
I have the IntelliJ 12 too, to run app i just click in 'File' -> 'Create Project', select 'Grails Project'
Click Next,
Click em Create, select the folder, who contain the Grails 2, and Voila. :-)
If you has the project before, run in project 'grails integrate-with --intellij' or run import project, and create a Grails SDK
Not really an "answer" here, but after seeing similar troubles with IDEA I went ahead and just created a new project and copied my source in and resolved my issues, if not solving the actual problem.