title: Managing project dependencies with Gradle and IntelliJ
body: <p>I am looking to use Gradle to build my Groovy / Grails based project for which we are using IntelliJ Idea as the IDE.</p>
  
  <p>I am using IntelliJ version 11.1.4, Gradle version 1.2.</p>
  
  <p>My project is a configured as a multi project build with various Groovy &amp; Grails subprojects.</p>
  
  <p>I was hoping that this would give me the same kind of IDE support that I would get if managing the build through Maven, such as:</p>
  
  <ul>
  <li>Automatic dependency management (import new dependencies to IntelliJ when added to various build.gradle)</li>
  <li>Build DSL support</li>
  <li>Execution of build tasks</li>
  <li>Use of the underlying build system (gradle) by the IDE when performing builds\</li>
  </ul>
  
  <p>I have imported my project into IntelliJ by opening the root build.gradle file.</p>
  
  <p>So far I am coming up against a few annoying problems:</p>
  
  <ol>
  <li>IntelliJ is not recognising (or recognising randomly) changes to dependencies in the build.gradle files and therefore dependencies are not being updated.</li>
  <li>The gradle "idea" plugin doesn't seem to work with multi module projects.</li>
  </ol>
  
  <p>How are people working with Gradle inside IntelliJ? Are you managing dependencies manually within IntelliJ??</p>