mpeltonen/sbt-idea — pull request #147 by AlainODea (2012-04-07 15:19:07+00:00)
Title: Use Java Version to set Project SDK (fix #146)

Hi Mikko:

I have a fix for the issue I reported.

Instead of statically using 1.6 as the Project SDK name and JDK_1_6 as the
Project Language Level, use the major and minor from the java.version System
Property of the JVM running SBT.

This won't work in all cases, but it seems like a sensible default.

I am happy to do further testing or code cleanup if you desire :)

Best,
Alain