title: How do I import an existing Grails 3 (3.0.12) project in IntelliJ 15
body: <p>There's documentation on IntelliJ's website for creating a new Grails project, but importing a project is more sketchy and I cannot get it to work for me.</p>
  
  <p>If I tell IntelliJ to import a new project, and point it to my project directory, it does not recognize it as a Grails project. After the project imports, I can go to the Project menu, right click on the project and go to "add Framework support..." and select Groovy, but IntelliJ still does not recognize my project as a Grails project. For instance, with a new Grails project the run menu would contain a button for running the app that would be decorated with the 3-cups icon synonymous with Grails. I don't get that with my imported project.</p>
  
  <p>Here are the precise steps I'm taking so far:</p>
  
  <ol>
  <li>Start with my fresh unimported project. This is a project and I can build manually using grails compile.</li>
  <li>Open IntellliJ 15 UE and select "<strong>Import Project</strong>"</li>
  <li>Select the top level directory containing my build.gradle file and grails-app directory</li>
  <li>Select <strong>Create project from existing sources</strong></li>
  <li>Default project name/location</li>
  <li>Select all source directories that were found. These include:
  
  <ol>
  <li><strong>grails-app</strong> conf, controllers, domain, init, taglib directories</li>
  <li>src/main/groovy</li>
  <li>test/unit</li>
  </ol></li>
  <li>At the <strong>Libraries</strong> screen, go with the default gradle-wrapper option</li>
  <li>At the <strong>Modules</strong> screen go with the 3 </li>
  <li>"Select project SDK..." I select my 1.8 JDK setup. There's no mention of Grails here.</li>
  <li>I see a <strong>"No Frameworks detected"</strong> message. Should I be able to configure Grails here?</li>
  <li>Select finish.</li>
  </ol>
  
  <p>At this point I'm at the IntelliJ editor window with a project that doesn't build. I can go to "Add Frameworks Support" and enable support for Groovy and at that point reference my Grails SDK. But in any case I feel like I shouldn't have to do this. I think IntelliJ ought to be able to detect my Project type and characteristics and that I'm just not configuring it right.</p>
  
  <p>But regardless, my project still doesn't compile inside IntelliJ. I have to build it via the console. Right now none of my Java files located in src/main/groovy compile. All of the imports that references <code>org.springframework</code> are coming back with the "cannot resolve symbol" error.</p>