Modifying IntelliJ IDEA projects


(Phil Swenson) #1

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?


(Szczepan Faber) #2

Hey Phil,

  1. 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).

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

Hope that helps!