If you want dependencies to be added automatically to the POM, you need to use a component function. Here is an example from the user guide:
publishing { publications { mavenJava(MavenPublication) { from components.java } } }
This is important from ... What I do not know is whether the Android plugin is to configure its own software components. I do not see any references to such things.
Remember that the new publishing engine is currently being incubated, and perhaps that is why the Android plugin does not offer direct support for it at the moment.
If you really want to use the publish plugin, you can capture time-dependent artifacts and manually add them to the POM using the syntax described in the user guide . I would not recommend this approach, although it was erratic and looked prone to errors.
Peter Ledbrook
source share