Using scala 2.9.2 with the game?

I have a Play project. Unfortunately, I am deserializing some class classes that have been serialized using scala 2.9.2. Since the game uses 2.9.1, there is an InvalidClassException.

Caused by: java.io.InvalidClassException: scala.Option; local class incompatible: stream classdesc serialVersionUID = 2832403187243187948, local class serialVersionUID = 7113474029577970182

Is it possible to force a game to use scala 2.9.2? The configuration of the playback project seems to do a lot of magic. There is not much to projects/Build.scala.

import sbt._
import Keys._
import PlayProject._

object ApplicationBuild extends Build {
    val appName         = "myproj"
    val appVersion      = "1.0-SNAPSHOT"
}

Since 2.9.2 is binary, compatible with 2.9.1, I should be able to make it use, but I don’t know how to do it!

Update: Adding scala 2.9.2 as a dependency gives me the following error.

[error] {file:/home/schmmd/repo/openie-demo/}openiedemo/*:update: Version specified for dependency org.scala-lang#scala-lang;2.9.2 differs from Scala version in project (2.9.1).
+5
source share
3 answers

sbt Play 2.0.4, Scala 2.9.2, 2.0.4 SBT 0.11.x. ! Scala 2.9.2 SBT 0.12.x, Play 2.0.4 Scala 2.9.2

Scala 2.9.3 . scalaVersion 2.9.3 , 2.0.0 SBT .

+1

Build.scala

object ApplicationBuild extends Build {

    val appDependencies = Seq(
       // Add your project dependencies here,
       "org.scala-lang" % "scala-compiler" % "2.9.2",
      ...
    )

    val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).setting(
      // Add your own project settings here
      scalaVersion := "2.9.2"
    )
}
+7

scala sbt. , sbt 2.9.2.

scala sbt?

+1

All Articles