title: gradle: how to generate a bundle file with dependency=version in it
body: <p>In gradle I would like to generate a "bundle" file - the one with external dependencies and internal modules, like</p>
  
  <pre><code>log4j=1.2
  my.company.api=1.3
  </code></pre>
  
  <p>So I presume I need to override build task, access dependencies of the root project and iterate over them?
  What is the best/most elegant way to solve it? </p>
  
  <p>Thanks.</p>