title: How to make gradle / intellij / play framework work together?
body: <p>Here is a Gradle build as advised <a href="https://docs.gradle.org/current/userguide/play_plugin.html" rel="nofollow noreferrer">here</a> for using play web framework. </p>
  
  <pre class="lang-groovy prettyprint-override"><code>plugins {
    id 'play'
    id 'idea'
  }
  
  repositories {
    jcenter()
    maven {
      name "typesafe-maven-release"
      url "https://repo.typesafe.com/typesafe/maven-releases"
    }
    ivy {
      name "typesafe-ivy-release"
      url "https://repo.typesafe.com/typesafe/ivy-releases"
      layout "ivy"
    }
  }
  </code></pre>
  
  <p>It works fine when building, launching etc... from command line but once the project is imported in intellij (idea's project files generated with <code>gradle idea</code>), dependencies (from the play plugin) don't show up in the project view/external libraries (even after having hit "refresh all gradle projects" in the  gradle panel).</p>
  
  <p>Thanks :)</p>
  
  <p><strong>PS</strong>: intellij 15.0.2 / gradle 2.6 / <a href="https://docs.gradle.org/current/userguide/play_plugin.html" rel="nofollow noreferrer">play plugin</a></p>
  
  <p><a href="https://i.stack.imgur.com/7xMLe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7xMLe.png" alt="enter image description here"></a></p>