Hello, I need help optimizing my artifact upload ...
# multiplatform
u
Hello, I need help optimizing my artifact upload process. Currently, the
publish
task takes 20–30 minutes to upload artifacts to a custom Maven repository. From what I observe, the uploads are processed sequentially for each task. So while the tasks are executed in parallel, there uploads are not. The library consists of 25 modules, and as this number grows, the upload time is expected to increase further. Is there a way to enable parallel uploads for this process? For context, the
publishToMavenLocal
task only takes 1–2 minutes, even if configuration cache is not reused. Here are the options I’m currently using:
Copy code
org.gradle.jvmargs=-Xmx4G -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options="-Xmx4G" -XX:+UseParallelGC  
org.gradle.caching=true  
org.gradle.configuration-cache=true  
org.gradle.configuration-cache.problems=warn  
org.gradle.parallel=true  
org.gradle.configureondemand=true
Any insights or suggestions would be greatly appreciated! EDIT: This is KMP project with android and iOS targets.
t
Could be relevant: https://github.com/gradle/gradle/issues/23484 In general it is more a question for Gradle public slack - https://gradle.org/slack-invite/
gratitude thank you 1
u
The attached issue just refers to docs so will probably ask this question in their slack. Thanks for the help!