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