diff --git a/README.md b/README.md index 856fb17..a96fc2a 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,14 @@ JVM processes without any prior setup at the target process. ## Download Download and extract -[scalive-1.1.zip](https://github.com/ngocdaothanh/scalive/releases/download/v1.1/scalive-1.1.zip), +[scalive-1.2.zip](https://github.com/ngocdaothanh/scalive/releases/download/v1.2/scalive-1.2.zip), you will see: ``` -scalive-1.1/ +scalive-1.2/ scalive scalive.cmd - scalive-1.1.jar + scalive-1.2.jar scala-library-2.10.3.jar scala-compiler-2.10.3.jar @@ -22,13 +22,17 @@ scalive-1.1/ scala-library-2.10.4.jar scala-compiler-2.10.4.jar scala-reflect-2.10.4.jar + + scala-library-2.11.0.jar + scala-compiler-2.11.0.jar + scala-reflect-2.11.0.jar ``` scala-library, scala-compiler, and scala-reflect of the appropriate version will be loaded to your running JVM process, if they have not been loaded. -For convenience, Scala 2.10.3 and 2.10.4 JARs are preincluded. If your process -is using a different Scala version, you need to manually download the +For convenience, Scala 2.10.3, 2.10.4, and 2.11.0 JARs are preincluded. If your +process is using a different Scala version, you need to manually download the corresponding JARs and save them as above. ## Usage diff --git a/build.sbt b/build.sbt index 4ec76d7..cf095b2 100755 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,9 @@ organization := "tv.cntt" name := "scalive" -version := "1.1-SNAPSHOT" +version := "1.2-SNAPSHOT" + +scalaVersion := "2.11.0" autoScalaLibrary := false @@ -18,7 +20,7 @@ javacOptions ++= Seq("-source", "1.6", "-target", "1.6") // https://blogs.oracle.com/CoreJavaTechTips/entry/the_attach_api unmanagedJars in Compile := (file(System.getProperty("java.home")) / ".." / "lib" * "tools.jar").classpath -libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.10.3" +libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.11.0" packageOptions in (Compile, packageBin) += Package.ManifestAttributes( "Main-Class" -> "scalive.AgentLoader", diff --git a/dev/README.rst b/dev/README.rst index d153c4d..42525b2 100644 --- a/dev/README.rst +++ b/dev/README.rst @@ -25,7 +25,7 @@ This is the directory that will be zipped when Scalive is released. zip/ scalive scalive.cmd - scalive_2.10-1.1-SNAPSHOT.jar -> ../../target/scala-2.10/scalive_2.10-1.1-SNAPSHOT.jar + scalive_2.11-1.2-SNAPSHOT.jar -> ../../target/scala-2.11/scalive_2.11-1.2-SNAPSHOT.jar scala-library-2.10.3.jar scala-compiler-2.10.3.jar @@ -35,6 +35,10 @@ This is the directory that will be zipped when Scalive is released. scala-compiler-2.10.4.jar scala-reflect-2.10.4.jar + scala-library-2.11.0.jar + scala-compiler-2.11.0.jar + scala-reflect-2.11.0.jar + While developing: * Run ``sbt package`` to create/update scalive.jar diff --git a/src/main/java/scalive/Agent.java b/src/main/java/scalive/Agent.java index c5fc27a..2702567 100644 --- a/src/main/java/scalive/Agent.java +++ b/src/main/java/scalive/Agent.java @@ -15,9 +15,9 @@ public class Agent { * jarpath/ * scalive.jar * - * scala-library-2.10.3.jar - * scala-compiler-2.10.3.jar - * scala-reflect-2.10.3.jar + * scala-library-2.11.0.jar + * scala-compiler-2.11.0.jar + * scala-reflect-2.11.0.jar * * [Other Scala versions] * }}} diff --git a/src/main/java/scalive/AgentLoader.java b/src/main/java/scalive/AgentLoader.java index 14b80d7..a5af9ba 100644 --- a/src/main/java/scalive/AgentLoader.java +++ b/src/main/java/scalive/AgentLoader.java @@ -16,13 +16,11 @@ public class AgentLoader { * * {{{ * jarpath/ - * scalive-agent.jar - * scalive-client.jar - * scalive-repl.jar + * scalive.jar * - * scala-library-2.10.3.jar - * scala-compiler-2.10.3.jar - * scala-reflect-2.10.3.jar + * scala-library-2.11.0.jar + * scala-compiler-2.11.0.jar + * scala-reflect-2.11.0.jar * * [Other Scala versions] * }}} diff --git a/src/main/java/scalive/Server.java b/src/main/java/scalive/Server.java index 58e2286..0ef73b9 100644 --- a/src/main/java/scalive/Server.java +++ b/src/main/java/scalive/Server.java @@ -9,7 +9,7 @@ public class Server { // Load this Scala version if Scala has not been loaded in the target process - private static final String DEFAULT_SCALA_VERSION = "2.10.3"; + private static final String DEFAULT_SCALA_VERSION = "2.11.0"; public static void serve(Socket client, String[] jarpaths) throws Exception { InputStream in = client.getInputStream();