Hey all. Having a bit of an issue with the maven-p...
# gradle
s
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
(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 👂
As you can see, subproject
android-core
depends on
core
, but that isn't being reflected in the Pom.
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.
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.