title: Gradle Command from configurations.compile.collect
body: <p>I stumbled upon one article about how to make fat jar files in Gradle.</p>
  
  <pre><code>jar {
      from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  }
  </code></pre>
  
  <p>My questions are</p>
  
  <ol>
  <li><p>what is the jar element? Is it a way to declare properties. As I understand, I can define properties as follows:</p>
  
  <p>prop1{
     prop2{
        prop3.prop4=5
     }
  }</p></li>
  </ol>
  
  <p>which is equivalent to: prop1.prop2.prop3.prop4=5</p>
  
  <ol start="2">
  <li>the from statement: Is it a method? I mean is it from (params).</li>
  </ol>
  
  <p>I also found an article about ConfigurationContainer: <a href="https://gradle.org/docs/current/javadoc/org/gradle/api/artifacts/ConfigurationContainer.html" rel="noreferrer">https://gradle.org/docs/current/javadoc/org/gradle/api/artifacts/ConfigurationContainer.html</a>.</p>
  
  <p>However, I can't link the information to make a full picture here.</p>