Ubadah Jafry
01/28/2025, 7:59 AMpublish
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:
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.tapchicoma
01/28/2025, 12:29 PMUbadah Jafry
01/28/2025, 12:35 PM