Extend support for additional types of IntelliJ IDEA Modules

I’m intetested in using Gradle for our Flex builds. Specifically, one of the things we’re interested in at this time is the ability to generate IntelliJ IDEA wupport files (projects, workspaces, modules, and build configurations). The current functionality in the ‘idea’ plugin gets us close to what we’re looking for, but doesn’t quite get us to exactly where we need to be. Specifically, the problem we’re having is that the IntelliJ module files that the ‘idea’ plugin generates are specific to a IntelliJ Java module, and the Flex modules we’re looking to create end up looking a bit different.

I understand that there are hooks available to allow us to customize the XML before it’s written to disk, but I’d like to implement a deeper level of integration. Specifically, org.gradle.plugins.ide.idea.model.Module does accurately capture the attributes we need for a Flex module, and captures some that have no meaning in our context.

I’d like to be able to build upon the IDE plugin functionality, but I run into a problem with it using internal classes (org.gradle.api.internal.xml.XmlTransformer is an example of one).

Is it on the roadmap to expose more of the IDE plugin support externally so that it might be built upon by other plugins? Is this something I could help out with?

Hi Ryan,

We are interested in expanding the support. We’d be happy to work with you on a pull request to extend the ‘org.gradle.plugins.ide.idea.model.Module’ class to model the attributes you need to capture.