IntelliJ 11 - Grails SDK not configured

I recently updated my IntelliJ 10 to the latest version 11.0.1. I am writing a grails application and until I used an older version of IntelliJ, everything was fine, however 11 does not allow me to successfully add the Grails SDK (2.0.0) - I tried to add support for the framework, this, however, t seems to be , is saved (after adding Groovy and then choosing Grails, nothing happens). I also tried following these steps: IntelliJ IDEA 9.0 - Failed to select SDK project for Grails application

I would be grateful if someone could tell me how to configure the Grails SDK - or what might be wrong in my configuration.

Thanks,


This is exactly how I defined my global library, and yet I had the same problem.

I followed OverZealous advice and created a new Grails project, named just like the original, and the boom is all right! Thanks for the help.

+8
intellij-idea grails
source share
2 answers

You do not need both the Groovy and Grails projects for Grails, just use the Grails SDK. When creating a new Grails project, it is possible to add a new SDK, select the Grails installation path and it will be automatically configured as a Global library , and this library will be added as a dependency to your module.

The Grails library configuration contains all banks from GRAILS_HOME\dist and GRAILS_HOME\lib , as well as all banks from the src directory.

grails global library

grails dependency


In other words, it is not configured as a framework, it is just a library with all the banks from the Grails distribution, added depending on the module.

+16
source share

Every time I restart IntelliJ, version 13.1.2, it loses the SDK configuration. If I right-click on the project and Add Support Framework, I can select the SDK that is already configured and it will start functioning properly. When it loses this parameter, it will not allow me to compile or run the application using grails. I reject the idea to recreate the project (was / did it), since I have many dependent modules that I have to check, and I lose all the startup settings that I installed manually. I am posting here the โ€œAdd framework supportโ€ step so that it can help someone else; hope a more permanent solution for you, but its temporary in my situation

0
source share

All Articles