IntelliJ 11 - Grails SDK is not configured

后端 未结 2 1137
猫巷女王i
猫巷女王i 2020-12-15 11:18

I have recently upgraded my IntelliJ 10 to the latest 11.0.1 version. I am writing grails app and until I was using the older version of IntelliJ everything was fine, howeve

2条回答
  •  误落风尘
    2020-12-15 11:43

    You don't need both Groovy and Grails for Grails project, just use Grails SDK. When creating a new Grails project there is an option to add new SDK, select the home path of your Grails installation and it will be configured automatically as a Global Library and this library will be added as a dependency to your module.

    Grails library configuration contains all the jars from GRAILS_HOME\dist and GRAILS_HOME\lib, plus all the jars from the src directory.

    grails global library

    grails dependency


    In other words, it's not configured as a framework, it's just a library with all the jars from Grails distribution added to the module dependencies.

提交回复
热议问题