I have a Play project. Unfortunately I am deserializing some case classes that were serialized using scala 2.9.2. Since play uses 2.9.1 there is a InvalidClassException.
Caused by: java.io.InvalidClassException: scala.Option; local class incompatible: stream classdesc serialVersionUID = 2832403187243187948, local class serialVersionUID = 7113474029577970182
Is it possible to force play to use scala 2.9.2? The play project configuration seems to be doing a lot magically. There's not much in 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 force it to be used--but I have no idea how to!
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).