title: 'jvm-1.8' is not a valid choice for '-target'
body: <p>IntelliJ complains with the following exception when I try to make my project.</p>
  
  <pre><code>Error:scalac: 'jvm-1.8' is not a valid choice for '-target'
  Error:scalac: bad option: '-target:jvm-1.8'
  </code></pre>
  
  <p>But a 'gradlew clean install' works just fine. </p>
  
  <p>The project setup is:</p>
  
  <p>gradle version 2.3</p>
  
  <p>scala 2.10 and java</p>
  
  <p>3 of the 4 modules use java 1.7 (source and target compatibility), the 4th module has source and target compatibility 1.8 and is causing the problem.</p>
  
  <p>Any ideas how I can avoid the error? (moving to java 7 is not an option, upgrading scala is)</p>