I have a multi-module project in gradle which I open in Idea.
I use OSGi, and I need the Idea modules to have the Osmorc facet applied.
For this, I use the gradle Idea plugin, and I have some success modifying the module iml files to apply the facet. My problem is, that it’s the wrong iml-file I’m modifying!
My project is structured like this
When I open the toplevel (Step) gradle build file, Idea/Gradle creates corresponding iml files in the Step root directory.
However, when I use the idea.module.iml construct, what I modify is iml files in the sub-directories, which isn’t the module files Idea is using.
I have solved the problem by changing the module.outputFile to point to the iml file Idea has created, but there seems to be something out of sync between the structure opened and created by idea, and the model used by the gradle idea plugin.