File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ autoScalaLibrary := false
88
99javacOptions ++= Seq (" -Xlint:deprecation" )
1010
11+ // Ensure scalive's scala files can be run on Java 1.6
12+ scalacOptions += " -target:jvm-1.6"
13+
14+ // Ensure scalive's java files can be run on Java 1.6
15+ javacOptions ++= Seq (" -source" , " 1.6" , " -target" , " 1.6" )
16+
1117// Add tools.jar to classpath
1218// https://blogs.oracle.com/CoreJavaTechTips/entry/the_attach_api
1319unmanagedJars in Compile := (file(System .getProperty(" java.home" )) / " .." / " lib" * " tools.jar" ).classpath
@@ -17,4 +23,4 @@ libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.10.3"
1723packageOptions in (Compile , packageBin) += Package .ManifestAttributes (
1824 " Main-Class" -> " scalive.AgentLoader" ,
1925 " Agent-Class" -> " scalive.Agent"
20- )
26+ )
You can’t perform that action at this time.
0 commit comments