I use this gradle uploadArchives to upload artefacts (jar, source code and javadoc) of an android open source library of mine to oss sonatype nexus repository. However, somehow uploadArchives seems to run in parallel because after completing gradle I see multiple staging repositories created on oss sonatype. One contains .jar, another one contains source code and java docs (or in any other combination like .jar and source code are in one staging repository but java docs are not in the same; it basically changes all the time).
Even disable parallel via ./gradlew uploadArchives -Dorg.gradle.parallel=false doesn't help.
I can't close/release a staging repository because it only contains some parts (like java docs and .jar but not source code) instead of all artefacts in one single staging repository (the rest is distributed to other staging repositories somehow).
Any idea how to solve this problem?