sbt-idea icon indicating copy to clipboard operation
sbt-idea copied to clipboard

Specify Java Platform version?

Open rparree opened this issue 10 years ago • 2 comments

I am running idea with Java 8, but would like my project to use Java 7. I can't figure out how to do that. Changing the project to use JDK 7 does not work as it has to restart and then reimports the sbt project and sets all back to 1.8. (#147 is related)

rparree avatar Apr 11 '14 16:04 rparree

+1 here. SBT console doesn't respect scalacOptions and javacOptions in sbt.build file. If I run sbt in a terminal, the output version is correct. But if I run via SBT console inside IDEA, it always output as Java 8.

depend avatar Dec 24 '15 19:12 depend

Still an issue. I've been trying to target JDK11 as Oracle's greed has meant only JDK11 or 8 are available via apt. So building a debian package with dependancies I only have 2 choices for target but the SBT plugin still ignores any version settings. I've set the project, every module, and the compiler settings in build.sbt but I can only get JDK11 target output by building in a shell.

ianknowles avatar Mar 21 '20 05:03 ianknowles