I need to make modifications to an IntelliJ IDEA .iml file to pull in a new test source directory that isn’t standard. We extended the base gradle behavior. Does anyone have any examples of writing code to modify the base IDEA plugin XML format?
Our dsl reference should get you started: http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html Then, look up groovy documentation and examples how to work with xml (plenty of sources).
You can take a look in the gradle build itself for an example, look for ‘gradle/idea.gradle’ file.
Hope that helps!