Skip to content

Commit

Permalink
Fix #12 Update default Scala from 2.11.2 to 2.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocdaothanh committed Dec 30, 2014
1 parent b1e7564 commit d418015
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ JVM processes without any prior setup at the target process.
## Download

Download and extract
[scalive-1.4.zip](https://github.com/xitrum-framework/scalive/releases/download/1.4/scalive-1.4.zip),
[scalive-1.5.zip](https://github.com/xitrum-framework/scalive/releases/download/1.5/scalive-1.5.zip),
you will see:

```
scalive-1.4/
scalive-1.5/
scalive
scalive.cmd
scalive-1.4.jar
scalive-1.5.jar
scala-library-2.10.4.jar
scala-compiler-2.10.4.jar
scala-reflect-2.10.4.jar
scala-library-2.11.2.jar
scala-compiler-2.11.2.jar
scala-reflect-2.11.2.jar
scala-library-2.11.4.jar
scala-compiler-2.11.4.jar
scala-reflect-2.11.4.jar
```

scala-library, scala-compiler, and scala-reflect of the appropriate version
Expand All @@ -32,9 +32,9 @@ For example, your process has already loaded scala-library 2.10.4 by itself,
but scala-compiler and scala-reflect haven't been loaded, Scalive will
automatically load their version 2.10.4.

If none of them has been loaded, Scalive will load version 2.11.2.
If none of them has been loaded, Scalive will load version 2.11.4.

For convenience, Scala 2.10.4 and 2.11.2 JARs are preincluded. If your
For convenience, Scala 2.10.4 and 2.11.4 JARs are preincluded. If your
process is using a different Scala version, you need to manually download the
corresponding JARs from the Internet and save them in the same directory as
above.
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ organization := "tv.cntt"

name := "scalive"

version := "1.4-SNAPSHOT"
version := "1.5-SNAPSHOT"

scalaVersion := "2.11.2"
scalaVersion := "2.11.4"

autoScalaLibrary := false

Expand All @@ -23,7 +23,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.11.2"
libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.11.4" % "provided"

packageOptions in (Compile, packageBin) += Package.ManifestAttributes(
"Main-Class" -> "scalive.AgentLoader",
Expand Down
12 changes: 6 additions & 6 deletions dev/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ 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.2.jar
scala-compiler-2.11.2.jar
scala-reflect-2.11.2.jar
scala-library-2.11.4.jar
scala-compiler-2.11.4.jar
scala-reflect-2.11.4.jar

While developing:

Expand All @@ -58,9 +58,9 @@ released (remember to remove uneccessary files, like .gitignore):
scala-compiler-2.10.4.jar
scala-reflect-2.10.4.jar

scala-library-2.11.2.jar
scala-compiler-2.11.2.jar
scala-reflect-2.11.2.jar
scala-library-2.11.4.jar
scala-compiler-2.11.4.jar
scala-reflect-2.11.4.jar

Then zip it:

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/scalive/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.11.2";
private static final String DEFAULT_SCALA_VERSION = "2.11.4";

public static void serve(Socket client, String[] jarpaths) throws Exception {
InputStream in = client.getInputStream();
Expand Down

0 comments on commit d418015

Please sign in to comment.