This (workaround?) worked for setting up a “testResource” directory. Just modify as required for a normal “resource” directory. (Improvements welcome!)
Intellij IDEA Ultimate 14 Gradle 2.2
apply plugin: 'idea'
idea {
module.iml.withXml {
def atts = it.asNode().component.content.sourceFolder
.find { it.@url == 'file://$MODULE_DIR$/src/test/resources' }
.attributes()
atts.remove('isTestSource')
atts.put('type', 'java-test-resource')
}
}