mpeltonen / sbt-idea

A simple-build-tool (sbt) plugin/processor for creating IntelliJ IDEA project files
Other
1.07k stars 153 forks source link

Specify Java Platform version? #296

Open rparree opened 10 years ago

rparree commented 10 years ago

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)

depend commented 8 years ago

+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.

ianknowles commented 4 years ago

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.