How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15 -


there's documentation on intellij's website creating new grails project, importing project more sketchy , cannot work me.

if tell intellij import new project, , point project directory, not recognize grails project. after project imports, can go project menu, right click on project , go "add framework support..." , select groovy, intellij still not recognize project grails project. instance, new grails project run menu contain button running app decorated 3-cups icon synonymous grails. don't imported project.

here precise steps i'm taking far:

  1. start fresh unimported project. project , can build manually using grails compile.
  2. open intelllij 15 ue , select "import project"
  3. select top level directory containing build.gradle file , grails-app directory
  4. select create project existing sources
  5. default project name/location
  6. select source directories found. these include:
    1. grails-app conf, controllers, domain, init, taglib directories
    2. src/main/groovy
    3. test/unit
  7. at libraries screen, go default gradle-wrapper option
  8. at modules screen go 3
  9. "select project sdk..." select 1.8 jdk setup. there's no mention of grails here.
  10. i see "no frameworks detected" message. should able configure grails here?
  11. select finish.

at point i'm @ intellij editor window project doesn't build. can go "add frameworks support" , enable support groovy , @ point reference grails sdk. in case feel shouldn't have this. think intellij ought able detect project type , characteristics , i'm not configuring right.

but regardless, project still doesn't compile inside intellij. have build via console. right none of java files located in src/main/groovy compile. of imports references org.springframework coming "cannot resolve symbol" error.

i've had issue before well. way around to:

  • blow away intellij project
  • import existing sources
  • double click build.gradle
  • ensure auto-import on gradle set false

here's intellij issue related - https://youtrack.jetbrains.com/issue/idea-149513


Comments