IntelliJ IDEA 9.0 - unable to select project SDK for Grails application

后端 未结 2 942
囚心锁ツ
囚心锁ツ 2021-01-04 23:19

I\'m convinced that I\'m just having a bad day and missing something obvious. I\'m trying to create a new Grails project in IntelliJ IDEA 9.0 and I am unable to associate i

相关标签:
2条回答
  • 2021-01-04 23:58

    They Changed the way that this is done in Intellij 9.0. You are going to want to right-click on the Module and click "Add Framework Support"

    Add Framework Support

    This will bring up a dialog where you can select a new Groovy SDK. Choose your Grails Location and hit OK.

    Framework Support Dialog

    http://www.jetbrains.com/idea/webhelp/adding-frameworks-support.html

    http://www.jetbrains.com/idea/webhelp/frameworks-support.html

    0 讨论(0)
  • 2021-01-05 00:09

    Unfortunately, it isn't quite a simple as that. It appears your GROOVY_HOME needs to point to the version of Groovy you actually wish to use, and when defining the Global Groovy library, you need to make sure you add the individual jar files, not the whole jar directory (otherwise IDEA doesn't recognize its a Groovy install).

    0 讨论(0)
提交回复
热议问题