Programmatically set "Generate *.iml files for modules imported from Gradle"


For our multi-module Python Gradle projects, native gradle import usually fails and we have to check the “Generate *.iml files for modules imported from Gradle” under Settings → Build, Execution, and Deployment → Build Tools → Gradle. After this is checked, we can re-run the Gradle sync/import logic.

Is there a way to programmatically check this box in a plugin so that our users don't have to manually do so each time?

1 comment


You can use UI Inspector to find such things easily


Please sign in to leave a comment.