(Automatically) Reload *.iml files on change

Answered

We use IDEA in conjunction with a rather large Gradle project. Using IJ's Gradle integration is currently not an option for us since syncs do not respect the --parallel flag, thus we're generating the project files outside of IJ (through `gradle idea`). However, when re-building *.iml files externally, IJ does not reload the *.iml files so we need to close and re-open the project which takes time and interrupts the workflow. Is there sime kind of hidden option to tell IJ to automatically reload changed *.iml files? 

0
4 comments
Avatar
Permanently deleted user

How unfortunate. Using the built-in Gradle support is really not an option for us as project syncs take ~30-60 minutes. A `gradle --parallel idea` runs in just over a minute.

Is there a ticket to vote on for proper `--parallel` support in Gradle syncs? We could probably patch IntelliJ/Gradle ourselfs if the relevant code is public and someone can point us in the general direction of the issue.

0

Related ticket: https://youtrack.jetbrains.com/v2/issue/IDEA-161163.

You can try adding -Dorg.gradle.parallel=true here:


0
Avatar
Permanently deleted user

We tried that but as I said, passing the parallel flag (or system prop) is currently broken. This seems to be related https://intellij-support.jetbrains.com/hc/en-us/community/posts/206164909-Gradle-Script-parameters-not-being-passed-along

Edit: Having a gradle.properties file setting the parallel option doesn't work either.

0

Please sign in to leave a comment.