Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scala 2.10Mx with playframework 2

How to use scala 2.10Mx with play 2.x.x?

I tried adding scalaVersion := "2.10.0-M3" to project/Build.scala but had no effect.

Here's my project/Build.scala:

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

object ApplicationBuild extends Build {

    val appName         = "dashboard-server"
    val appVersion      = "1.0-SNAPSHOT"

    resolvers += "Local Ivy Repository" at "file://"+Path.userHome.absolutePath+"/.ivy2/cache"

    scalaVersion := "2.10.0-M3"

    val appDependencies = Seq(
      "mysql" % "mysql-connector-java" % "5.1.10"
    )

    val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
      // Add your own project settings here

    )

}

I'm using sbt 0.11.3

like image 527
Johnny Everson Avatar asked May 24 '12 17:05

Johnny Everson


2 Answers

There is a ticket in the play bugtracker: https://play.lighthouseapp.com/projects/82401/tickets/650-support-for-scala-210-m6

The answer is you currently cannot use play 2 with scala 2.10 because of akka.

like image 158
user1411778 Avatar answered Nov 11 '22 05:11

user1411778


play 2.0.x doesn't work with Scala 2.10. the Play 2.1 branch does, but as of the time i write this (25 Oct 2012), you need to build the development branch from source, and the development branches are still under active development. TLDR: not yet suitable for production apps, give it a couple months

like image 41
Dustin Getz Avatar answered Nov 11 '22 06:11

Dustin Getz