I am using Gradle to build an Android library project and deploy it to maven repository as an aar.
The library has some dependencies, which should be included in the
try mavenDeployer: http://gradle.org/docs/current/userguide/maven_plugin.html
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://localhost/tmp/myRepo/")
pom.version = '1.0Maven'
pom.artifactId = 'myMavenName'
}
}
}
here you could set the pom details. You'll get a new goal called uploadArchives
. When executed, it deploys to a given repo.