Play! 2.1-RC1 Migration mini-guide

Tonight I took up to the task of migrating an app from Play! 2.0.3 to 2.1-RC1 to checkout what's new. First of all, what you will need to change to simply be able to boot up the play console without an "org.scala-sbt#sbt;0.11.3: not found" error being raised.

In the file plugins.sbt you need to change the line:
  • addSbtPlugin("play" % "sbt-plugin" % "2.0.3")
  • addSbtPlugin("play" % "sbt-plugin" % "2.1-RC1")
In the file build.properties you need to change:
  • sbt.version=0.11.3
  • sbt.version=0.12.0
Finally, the file Build.scala should look like:



Now you should be able to run play on your project and start changing stuff... since there are more changes which once you "run" or  "compile" you'll find out. For example, if you ever used form(Entity.class) now you'll need to import form as import static play.data.Form.form

No hay comentarios:

Publicar un comentario