Hey all. Having a bit of an issue with the maven-publish plugin if anyone has any insight. My POM is being generated without any transitive dependencies, and I'm not sure why. Here's a snippet I made: https://gitlab.com/snippets/1822620
Shan
02/16/2019, 12:51 PM
(I realise there are probably a host of other problems here-- I'm working on it!) ..... but if anyone has any suggestions (like how to make it so i don't have to manually write the location where each Jar is generated), I am all ears 👂
The only thing I can think of is that my project are being uploaded out of order, and that
:core:
is uploaded after
:android-core:
which might cause issues, but I'm not sure if that actually matters for POM dependencies.
Shan
02/16/2019, 5:42 PM
I "fixed" this issue by moving the publishing task to each individual subproject and explicitly calling them in the CI's scripting file in the proper order. It was failing because the contents of
core
were larger and had more dependencies of any of the projects, and thus was finishing uploading after the projects that depend on it. The Maven Publish plugin appears to run the uploads asynchronously. Not sure if this is intended, as it did break my transitive dependencies.