Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change JDK set by SBT import in IntelliJ IDEA?

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.

like image 934
Jacek L. Avatar asked Oct 01 '22 17:10

Jacek L.


1 Answers

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.

like image 126
yǝsʞǝla Avatar answered Oct 13 '22 10:10

yǝsʞǝla