I am trying to use the Scala plugin with Gradle to build my project on an Ubuntu VM. This is what my build.gradle file looks like:
apply plugin: \'scala\'
re
Fixed this myself in the end, the clue was that it was running on my Local machine but not my VM... of course my Gradle version was different.
Upgrading to Gradle 3.0 fixed this
I ran into this issue again recently, adding the following to my Gradle build script seemed to fix it:
ScalaCompileOptions.metaClass.daemonServer = true
ScalaCompileOptions.metaClass.fork = true
ScalaCompileOptions.metaClass.useAnt = false
ScalaCompileOptions.metaClass.useCompileDaemon = false