Setting java version with sbt import?
Is there a way to set the java version in an Intellij project when importing via sbt? I'm trying to develop with jdk 8 but every time the sbt file is updated, it sets the "Project SDK" in the Project settings to 1.7.
Thanks
Curtis
Please sign in to leave a comment.
Anybody? Still having problems with this. Every time I refresh my SBT settings, it sets my SDK back to 1.7. I always have to go into project settings and set it back to 1.8.
How does the Scala/SBT plugin determine what to set the project SDK to?
Thanks
Curtis
Yeah, I had the issue and it is annoying because you have to modify the project SDK manually again and again... It seems that Intellij resets the project SDK to the same version of the JDK it was launched with. The workaround I came up with is to launch Intellij with the same version as of my project SDK, so that when you create a project, the default chosen project SDK would be the same as the JDK you launched Intellij with.
I hope the JetBrains team will fix this bug asap... :)
Ohh, so it's not the scala plugin doing it, but IntelliJ itself. I agree, it's very annoying. Thanks for the info.
Curtis
Looks like it was the scala plugin changing the project SDK.
It was fixed in the last nightly.
Thank you developers!!
Curtis
Great news!
A big thank you to the JetBrains Team! :)