Is it necessary to change version of Scala that is used by SBT and its plugins ?
I\'m using Play Framework 2.1.1-RC2. I want to create new project that will use Scala 2.
The ultimate goal of my experiments was to change version of Scala compiler used to build my project.
After multiple attempts I concluded that achieving it nicely not possible. I think it's something creators of Play Framework should address.
Setting scalaVersion
to 2.10.1-local
in Build.scala didn't help much. SBT seem to be going to Maven/Ivy and downloading pieces of 2.10.0 that I don't want. After compiling the app I get bunch of warnings about incompatible dependencies.
I think it happens because {PLAY_HOME}\framework\project\Build.scala
has bunch of variable set to 2.10.0.
"Elegant" solution was to tell SBT I'm going to use local copy of Scala by setting following variables in Build.scala
scalaVersion := "2.10.1-local",
autoScalaLibrary := false,
scalaHome := Some(file("/Program Files (x86)/scala/"))
But still if I create IntelliJ IDEA configuration with play idea
command resulting project needs some clean up, in particular:
Scala 2.10.0
library.Scala 2.9.2
libraryI hope my experiments other people who are also learning Play and Scala.
Details are here: http://www.scala-sbt.org/release/docs/Howto/scala.html