Modifying IntelliJ IDEA projects

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?

Hey Phil,

  1. Our dsl reference should get you started: Then, look up groovy documentation and examples how to work with xml (plenty of sources).

  2. You can take a look in the gradle build itself for an example, look for ‘gradle/idea.gradle’ file.

Hope that helps!