IDEA plugin with war/web module

(Phil Swenson) #1

It appears that setting up a war configuration in gradle + running “gradle idea” does not generate a web module. Has anyone figured out how to get gradle to generate a web module correctly for IDEA? I seem to be back in to the manual configuration world…

(Szczepan Faber) #2

You can hook up to the generation of the *iml and *ipr, see the docs: and (especially the withXml {} method).

It’s not beautiful but you could configure the web-module stuff there provided you know how it looks like in the idea metadata.

Hope that helps!

(Giovanni Botta) #3

There is an interesting post about it but it’s far from perfect (won’t work with multi-module WARs):