I defined a build.gradle file with contents similar to that described in
http://forums.gradle.org/gradle/topics/org_gradle_plugins_ide_idea_model_module_destroys_content
I can see the expected changes to the .iml file if I run
gradle idea
However, if I import the project into IntelliJ from the gradle file, I do not see these changes. When importing, I do see the effects of changes to idea.module.sourceDirs, so I know my build.gradle file is being processed in some way. Is there a way I can get changes to idea.module.iml.withXml to also apply?