title: How to create Java gradle project
body: <p>How to create Java Gradle project from command line?</p>
  
  <p>It should create <a href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html" rel="noreferrer">standard maven folder layout</a> like on the picture below.</p>
  
  <p><img src="https://i.stack.imgur.com/jQpfh.png" alt="Java Gradle created with Eclipse plugin"></p>
  
  <p>UPDATE: </p>
  
  <p>.1. From <a href="http://www.gradle.org/docs/current/userguide/tutorial_java_projects.html" rel="noreferrer">http://www.gradle.org/docs/current/userguide/tutorial_java_projects.html</a>
  I need to create file <code>build.gradle</code> with 2 lines</p>
  
  <blockquote>
  <pre><code>apply plugin: 'java'
  apply plugin: 'eclipse'
  </code></pre>
  </blockquote>
  
  <p>.2. Add to <code>build.gradle</code> task below, than execute <code>gradle create-dirs</code></p>
  
  <blockquote>
  <pre><code>task "create-dirs" &lt;&lt; {
     sourceSets*.java.srcDirs*.each { it.mkdirs() }
     sourceSets*.resources.srcDirs*.each { it.mkdirs() }
  }
  </code></pre>
  </blockquote>
  
  <p>.3. Then run <code>gradle eclipse</code> (or corresponding string to other IDE plugin configured)</p>
  
  <p>So is there way to do it in one command?</p>