IDEA integration with Scala plugin broken since Gradle 3.0 (No such property: daemonServer)

Hi Ted,

thanks for reporting this! We already had another report: Scala 2.12.0.M5 , MissingPropertyException : daemonServer

I just didn’t get that this error happens when importing the project into IDEA. Thanks for opening the bug in the IDEA youtrack. I will mark this forum entry as not-a-bug since it is not a bug in Gradle itself.

You can work around the error by doing a little bit of monkey patching in your build.gradle:

ScalaCompileOptions.metaClass.daemonServer = true
ScalaCompileOptions.metaClass.fork = true
ScalaCompileOptions.metaClass.useAnt = false
ScalaCompileOptions.metaClass.useCompileDaemon = false

I do not know if this is a good idea and what Intellij IDEA would do with this information but at least it makes the error go away :wink:

Cheers,
Stefan

1 Like