I am trying to create a CI assembly that builds a version for an Android application and uploads the resulting apk to the neaven repository of the maven sonata.
When I run assembleRelease, apk is generated, signed, runs proguard and is in the build / output / apk / app-release.apk file
to load into nexus, I used this gradle plugin: https://github.com/chrisbanes/gradle-mvn-push with one difference that I used POM_PACKAGING = apk
I run: gradle uploadArchives and it works fine, it downloads apk to nexus, but its not the same file as in build / output / apk / app-release.apk (different creation dates).
means that he either does everything assembleRelease does, or simply archives the source, but skips some of the required actions required for the Android application.
The gradle plugin defines these artifacts:
artifacts { archives androidSourcesJar archives androidJavadocsJar }
Perhaps I should add a file artifact to build / exits / apk / app-release.apk?
source share