With gradle 1.5, running gradle idea to generate intellij project files does not properly add the scala facet to modules that apply the scala plugin within a multi module project. This prevents any scala from being compiled in intellij (and thus prevents the project from building there)
Manually adding the framework support in intellij causes the scala to be compiled within intellij, but there are too many modules for it to be feasible to do this each time gradle idea is run.
gradle build works fine for the project from the command line (ubuntu 12.04)
According to this page, applying the scala plugin should automatically configure intellij:
“When the IDEA plugin encounters a Scala project, it adds additional configuration to make the project work with IDEA out of the box. Specifically, the plugin adds a Scala facet and a Scala compiler library that matches the Scala version on the project’s class path.”
Everything works as expected using gradle 1.4 and the idea-scala-project plugin.
How can I get the scala facet to be added when running gradle idea on a multi module mixed scala and java project? Is there some way to work around this? Is there some other plugin I should use instead?