Clean way to publish Android AAR library with external dependencies with maven
I am creating an Android library that I am trying to publish to the Nexus Maven repository. What puzzles me is that there seems to be no clean way to publish my project via gradle using a plugin maven-publish
.
I found several answers that don't really satisfy me:
This plugin works fine and is currently not supported.
Having changed the generated POM in my build.gradle works, I just don't feel like this is the way it should be done - it seems like the problem should be solved in every android library build.gradle
.
Google even mentions the plugin maven-publish
in their documentation , but doesn't really show you how to use it.
Please tell me what I am missing: is the problem less trivial than I think? I am just trying to post an AAR with a pom stating this dependency, I am trying to build the most standard and standard solution I can.
Thanks in advance.
source to share
No one has answered this question yet
See similar questions:
or similar: