Programmatically set "Generate *.iml files for modules imported from Gradle"
Answered
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?
Please sign in to leave a comment.
org.jetbrains.plugins.gradle.settings.GradleSettings#setStoreProjectFilesExternally
You can use UI Inspector to find such things easily https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html