Reputation: 3308
I have a scala,sbt project to run and getting the exception below. Tried to find the solution on internet, only gradle related solutions were available.
Error:scala: 'jvm-1.8' is not a valid choice for '-target'
Error:scala: bad option: '-target:jvm-1.8'
I tried changing the compiler config and other intellij idea settings but unsuccessful to get rid of this issue. What is missing here ?
Upvotes: 2
Views: 2810
Reputation: 25997
encountered same issue with gradle. turns out need to update gradle to latest version. you might would like to try same for SBT.
Upvotes: 0
Reputation: 8996
This is the setting you are missing in SBT (added in build.sbt):
javacOptions ++= Seq("-target", "1.8")
Upvotes: 1