Hi all! I have a project, consisting of multiple (...
# gradle
j
Hi all! I have a project, consisting of multiple (KMP) modules. I am using VERSION_CATALOGS and TYPESAFE_PROJECT_ACCESSORS, and codewise there is not so much happening (yet). However, a simple gradle sync takes almost 20 minutes. If I enable offline mode, it takes less than a minute (I guess 10 or 20 seconds). If I remove all modules, except for 1 KMP module, from the settings.gradle, the waiting is still crazy. Does anyone have any tips as to where to look how to cut down the sync time to a reasonable level?
I disabled all proxy settings that I could find, but that didn't help.
Intellij says:
Copy code
Importing 'projectName' Gradle Project
Gradle: Build model...
IntelliJ IDEA 2021.3 (Community Edition), with kotlin 1.6 (even though the kotlin plugin in intellij is stuck at 1.5 due to a bug)
v
Maybe you can enable build scans and then see in the build scan where the time is eaten?
j
I am looking, but I can't seem to find where to set that option. I can set --scan to run configurations, but that wouldn't include the syncing I guess
j
Thanks for the hints! My troubles disappeared, i am not sure why as i was doing multiple things. Perhaps having removed repositories in the settings.gradle, or perhaps something else did the trick, no idea :)