title: Create a tar.gz for each folder in Gradle with Tar Task
body: <p>I have a project that has a folder structure like this</p>
  
  <pre><code>blue/folder1
  blue/folder2
  red/folder3
  red/folder4
  </code></pre>
  
  <p>and in Gradle I would like to tar up these folders individually so that the output looks like:</p>
  
  <pre><code>build/
    tar/
      blue/
        folder1.tar.gz
        folder2.tar.gz
      red/
        folder3.tar.gz
        folder4.tar.gz
  </code></pre>
  
  <p>Is that possible? How would I do this?</p>