IntelliJ complains with the following exception when I try to make my project.
Error:scalac: \'jvm-1.8\' is not a valid choice for \'-target\'
Error:scalac:
In Intellij IDEA (15 CE) add this scalac compiler option:
Build, Execution, Deployment -> Compiler -> Scala Compiler -> Default
Additional compiler options: -target:jvm-1.7
(was empty).
There were also profiles Gradle 1, ... with -target:jvm-1.8
, so I changed them also to -target:jvm-1.7
.
I'm using Scala 2.10, JVM 1.8, source compatibility 1.7. It helped in my case.