title: Gradle rename maven dependency package (HttpComponents, Android)
body: <p>Using and Choosing way to make HTTP(S) requests on Android is a long-time pain.</p>
  
  <p>Although Google wants us to use HttpURLConnection, there are those who prefer to use HttpClient instead.</p>
  
  <p>There is this library, <a href="https://code.google.com/p/httpclientandroidlib/" rel="nofollow">https://code.google.com/p/httpclientandroidlib/</a> with packaging script.</p>
  
  <p>I'd rather use something more integrated with Android build environment.</p>
  
  <p>Is there possibility to use Gradle to repackage Maven dependency (whole tree, including httpclient, httpcomponents, httpmime, ...) in the same way httpclientandroidlib does?</p>
  
  <p>The best scenario would be to have gradle download,repackage and link those libraries in the same transparent way.</p>
  
  <p>gradle:</p>
  
  <pre><code>dependencies {
      compile 'org.apache.httpcomponents:httpclient:4.2.3'
      compile 'org.apache.httpcomponents:httpmime:4.2.3'
  }
  </code></pre>