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
8
8
9
9
javacOptions ++= Seq (" -Xlint:deprecation" )
10
10
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
+
11
17
// Add tools.jar to classpath
12
18
// https://blogs.oracle.com/CoreJavaTechTips/entry/the_attach_api
13
19
unmanagedJars in Compile := (file(System .getProperty(" java.home" )) / " .." / " lib" * " tools.jar" ).classpath
@@ -17,4 +23,4 @@ libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.10.3"
17
23
packageOptions in (Compile , packageBin) += Package .ManifestAttributes (
18
24
" Main-Class" -> " scalive.AgentLoader" ,
19
25
" Agent-Class" -> " scalive.Agent"
20
- )
26
+ )
You can’t perform that action at this time.
0 commit comments