Build with Gradle 1.11, as the 'idea' plugin in 1.12-rc-1 does not produce usable IDEA metadata files.