How do you set which SDK is the default selected SDK when a new project is created? When I create a new project it always selects the IDEA SDK (used for plugin development) rather than 1.5 and 1.6 which I also have configured.
Generally this isn't a problem as I just change it. However, it becomes a problem when I create a Grails project because JAVA_HOME is set to Java 1.6 so Grails complains about JAVA_HOME not being set correctly so IntelliJ can't run the create-app task. Presumably because JAVA_HOME isn't set to the same SDK as the grails tasks are being run under as IntelliJ runs the grails task with the project SDK vm.