When Scala plugin reimports an SBT project in IntelliJ IDEA, it changes the project's JDK to 1.6. Is it a way to choose which JDK version Scala plugin sets during reimport of the STB project.

有帮助吗?

解决方案

You can set JDK options like these javacOptions in Compile ++= Seq("-source", "1.7", "-target", "1.7", "-Xlint:unchecked", "-Xlint:deprecation"), etc on SBT level in your project settings. It should help IntelliJ to use correct JDK version.

其他提示

Running sbt in the following way resolved it for me

sbt -java-home `/usr/libexec/java_home -v 1.7`
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top