Pom files not generated for projects with filters

There have been multiple cases reported where when using flavors for gradle projects (Android in my case) stops the generation of Pom files. This is incredibly important for Android library projects, resolving dependencies and flavors in general.

Example of the issue reported on the old forums:

I’ve spent days looking for a solution and can’t find any. This could be a bug in the gradle system itself or it could be related the maven plugin and the uploadArchives task.

Issue in the wild: Pom files not generated for flavors · Issue #1 · dimensionv/androdialogs · GitHub

In either case I thought I’d register it here and see if anyone has any input on how best to fix this or if its even a gradle bug.