tags:

views:

56

answers:

1

How can I set target JVM version in SBT? In Maven (with maven-scala-plugin) it can be done as follows:

<plugin>
...
    <configuration>
      <scalaVersion>${scala.version}</scalaVersion>
      <args>
         <arg>-target:jvm-1.5</arg>
      </args>
    </configuration>
</plugin>
+6  A: 

You can specify compiler options in the project definition:

override def compileOptions = super.compileOptions ++
  compileOptions("-target:jvm-1.5") 

Find more info here.

Vasil Remeniuk