Hi there, so we migrated our Gradle Groovy scripts...
# gradle
j
Hi there, so we migrated our Gradle Groovy scripts to Kotlin-DSL. In the past few days we realized that the IDE has become very unresponsive when editing files, copying or pasting stuff. Has anyone faced the same issue? I found this link: https://docs.gradle.org/current/userguide/kotlin_dsl.html "In addition, IntelliJ IDEA and Android Studio might spawn up to 3 Gradle daemons when editing Gradle scripts — one for each type of script: build scripts, settings files and initialization scripts. Builds with slow configuration time might affect the IDE responsiveness, so please check out the performance guide to help resolve such issues." Seems I'm gonna have to do some performance testing in order to figure this out. Wonder if anyone faced this and can pin point a solution.
s
If you disable automatic imports, it will improve performance of the IDE substantially. This functionality seems somewhat buggy and I suspect its related to the fact that the kotlin buildscripts are recompiled virtually anytime you make a keypress. On the otherhand, I don't know if the Groovy buildscripts are compiled at all. This is the price we pay for code completions and type safety, though.
j
Yeah, I have that disabled. Your theory makes sense to me. One thing tho that I tried and so far I had no freezing is to replace
rootProject.buildFileName
for
rootProject.name
in settings.gradle.kts.
¯\_(ツ)_/¯