It is unfortunate that the idea plugin does not seem to support scoped resource dirs (http://forums.gradle.org/gradle/topics/idea_plugin_resource_folders_support).