Missing dependencies when importing play sample project into IntelliJ

I was trying to import the sample Play projects from Gradle 2.8’s full dist zip into IntelliJ IDEA 15.

I was able to properly import Java sample projects, Scala sample projects. But for Play sample projects, I don’t see the dependencies are being picked up, that includes scala-lang dependencies, play dependencies, and other dependencies that I gave in build.gradle.

I wonder if this is because the play support uses play configuration. Anybody can shed some light on this?

Thank you.

The existing idea plugin doesn’t know how to extract the dependency info or source set info from the new model (we basically need something similar to IdeaScalaConfigurer for the new model).

I played around with trying to make something quick and dirty, but it’ll take a bit of work to hook the two together. The existing plugin is looking for JavaBase/ScalaBase plugins, so an IDEA module would need to be created and then the play/playTest configurations could be added:

plugins.withType(IdeaPlugin) {
    idea.module.scopes.COMPILE.plus = [ configurations.play ]
    idea.module.scopes.TEST.plus = [ configurations.playTest ]