title: Gradle Upload android application apk to maven repo (nexus)
body: <p>I'm trying to create a CI build that builds a release version of an android app and upload the resulting apk to a maven sonatype nexus repo.</p>
  
  <p>When I run assembleRelease, the apk is generated,signed,runs proguard,and is located in build/outputs/apk/app-release.apk</p>
  
  <p>in order to upload to nexus, I've used this gradle plugin:
  <a href="https://github.com/chrisbanes/gradle-mvn-push" rel="nofollow">https://github.com/chrisbanes/gradle-mvn-push</a>
  with one difference, that I used POM_PACKAGING=apk</p>
  
  <p>I run :  gradle uploadArchives
  and it works fine,it does upload an apk to nexus, but its not the same file as in build/outputs/apk/app-release.apk (different creation dates).</p>
  
  <p>meaning its either doing whatever assembleRelease does or it just archives the source but misses some of the required actions needed for an android app.</p>
  
  <p>the gradle plugin defines these artificats:</p>
  
  <pre><code>artifacts {
      archives androidSourcesJar
      archives androidJavadocsJar
  }
  </code></pre>
  
  <p>maybe I should add a file artifact to build/outputs/apk/app-release.apk?</p>