What is the best way to configure IDEs to work with a gradle web app?

best I can tell Gradle doesn’t offer any help with configuring and running a web app via the “gradle idea” or “gradle eclipse” commands. The build certainly knows enough to do this configuration, so having to do this manually doesn’t seem very DRY.

Has anyone written a plugin to assist with this?

BTW, I posted this issue on the tomcat plugin’s issue page:

https://github.com/bmuschko/gradle-tomcat-plugin/issues/76