Skip to content

Commit 2755e43

Browse files
committed
Specifying -source 1.5 so that it compiles with non-1.5 JDKs
1 parent 634a838 commit 2755e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/build/FunctionalJavaProject.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ abstract class FunctionalJavaDefaults(info: ProjectInfo) extends DefaultProject(
77

88
override def compileOptions = target(Target.Java1_5) :: (CompileOptions.Unchecked :: encodingUtf8).map(CompileOption) ++ super.compileOptions
99

10-
override def javaCompileOptions = List("-target", "1.5", "-encoding", "UTF-8", "-Xlint:unchecked").map(JavaCompileOption) ++ super.javaCompileOptions
10+
override def javaCompileOptions = List("-target", "1.5", "-source", "1.5", "-encoding", "UTF-8", "-Xlint:unchecked").map(JavaCompileOption) ++ super.javaCompileOptions
1111

1212
def scalacheckDependency = "org.scala-tools.testing" %% "scalacheck" % "1.8" % "test"
1313

0 commit comments

Comments
 (0)