rug-ds-lab / sbt-scala-parent

sbt plugin simplifying creating new sbt-based scala projects
MIT License
1 stars 1 forks source link

Add default parameters for java (java 7?) #7

Closed lazovik closed 9 years ago

lazovik commented 9 years ago

javacOptions ++= Seq("-source", "1.6", "-target", "1.6"), javacOptions in doc := Seq("-source", "1.6"),

lazovik commented 9 years ago

This does not work if you do not have java source files, for the scala compiler itself you need to add: scalacOptions += "-target:jvm-1.7", // enforce java7