You can set JDK parameters like javacOptions in Compile ++= Seq("-source", "1.7", "-target", "1.7", "-Xlint:unchecked", "-Xlint:deprecation")etc. at the SBT level in your project settings. This should help IntelliJ use the correct version of the JDK.
source
share