title: Web application with Intellij Idea 14 and Gradle
body: <p>We have ported a web project to Gradle and we are now trying to use it in Intellij Idea 14.0. But I'm a little confused! Gradle tool window is there and the tasks works properly. 
  As far as I understood, even when the project is based on Gradle, Idea uses its own project files to manage things. However, these project files are updated from Gradle when "Refresh all Gradle projects" button in the Gradle tool window is pressed.</p>
  
  <ol>
  <li><p>Idea web facet is NOT automatically created from Gradle. So the artifact of the project is not created correctly. Am I missing something?</p></li>
  <li><p>Is there anyway to change Idea make, build artifact (in Build menu) to work based on Gradle tasks instead of Idea's own project files? (for example somehow telling Idea that Make in Build menu should simply run compile task of Gradle or Build Artficat should run build task of Gradle?)</p></li>
  <li><p>How should I create proper Run/Debug configurations? I tried the following sequence:
  <code>Gradle Build Project</code>
  <code>Build Artifacts</code>
  But when invoking my Run configuration, no real artifact is built (i.e. the output directory for the artifact remains empty) which results in nothing deployed in Tomcat!</p></li>
  </ol>