(Since this is in an incubating feature, I don’t know if “Bug” or “Yet to be implemented” is more correct )
We eventually figured out what was causing this particular problem I had posted on the Old Forum.
We were setting up the publications block before the dependencies block in the project. This caused there to be no entries in the pom file.
Not a particularly onerous requirement but should be explicitly called out of desired, it is very easy to do and hard to figure out what was causing the problem.
We were doing it as part of a utility block that got copied to relevant projects. I suspect you may see the same thing if you use an allProjects block in your master file to set up publishing but set up dependencies individually…
Because it was an issue with the order of the blocks, that is why afterEvaluate solved the issue for us. (Since others seemed to be struggling with the problem even after trying that, I suspect this is a different issue than some of the others ran into)
Continuing the discussion from Maven-publish pom incorrect unless publications is in afterEvaluate: