more updates for scala 2.10 RC3

pull/83/head
Thibault Duplessis 2012-11-29 17:17:17 +01:00
parent 4a17713620
commit a3954d771a
9 changed files with 27 additions and 35 deletions

1
.gitignore vendored
View File

@ -10,5 +10,4 @@ serve/README
target
bin/.translate_version
data/
/play*
RUNNING_PID

2
.gitmodules vendored
View File

@ -3,4 +3,4 @@
url = git://github.com/ornicar/scalachess
[submodule "play"]
path = play
url = git://github.com/ornicar/Play20
url = git://github.com/playframework/Play20

View File

@ -125,7 +125,7 @@ object Cron {
op
}
catch {
case e println("[CRON ERROR] (" + name + ") " + e.getMessage)
case e: Exception println("[CRON ERROR] (" + name + ") " + e.getMessage)
}
}
}

View File

@ -27,7 +27,7 @@ final class I18nPool(val langs: Set[Lang], val default: Lang) {
}.getOrElse(Nil)
}
catch {
case e Nil
case e: Exception Nil
}
def domainLang(req: RequestHeader) =

View File

@ -1,4 +1,4 @@
#!/bin/sh
. bin/lilarc
play-2.1-RC1/play $JVM_OPTIONS "$@"
play/play $JVM_OPTIONS "$@"

2
play

@ -1 +1 @@
Subproject commit f99037e8e1db852f28ab9e7f5363bd4578bbdd7f
Subproject commit e5217b2f79678d9b3328e913d4146a7a92aa712c

View File

@ -15,11 +15,11 @@ trait Resolvers {
}
trait Dependencies {
val scalaz = "org.scalaz" % "scalaz-core_2.9.2" % "6.0.4"
val scalaz = "org.scalaz" % "scalaz-core_2.10.0-RC3" % "6.0.4"
val salat = "com.novus" % "salat-core_2.9.2" % "1.9.1"
val scalalib = "com.github.ornicar" % "scalalib_2.9.1" % "2.5"
val config = "com.typesafe" % "config" % "1.0.0"
val guava = "com.google.guava" % "guava" % "13.0"
val guava = "com.google.guava" % "guava" % "13.0.1"
val apache = "org.apache.commons" % "commons-lang3" % "3.1"
val scalaTime = "org.scala-tools.time" % "time_2.9.1" % "0.5"
val slf4jNop = "org.slf4j" % "slf4j-nop" % "1.6.4"
@ -38,29 +38,21 @@ object ApplicationBuild extends Build with Resolvers with Dependencies {
// private val buildSettings = Project.defaultSettings ++ Seq(
private val buildSettings = Seq(
// scalaVersion := "2.10.0-RC1",
// resolvers := Seq(iliaz, sonatype, sonatypeS, typesafe, t2v, guice, jgitMaven, christophs),
shellPrompt := {
(state: State) "%s> ".format(Project.extract(state).currentProject.id)
},
scalacOptions := Seq("-deprecation", "-unchecked")
scalacOptions := Seq(
"-deprecation",
"-unchecked",
"-feature",
"-language:implicitConversions,reflectiveCalls,postfixOps,higherKinds,existentials")
)
lazy val lila = play.Project("lila", "3", Seq(
scalaz,
scalalib,
hasher,
config,
salat,
guava,
apache,
scalaTime,
paginator,
paginatorSalat,
csv,
jgit,
actuarius,
scalastic)).settings(
scalaz, scalalib, hasher, config, salat, guava, apache, scalaTime,
paginator, paginatorSalat, csv, jgit, actuarius, scalastic
), settings = Defaults.defaultSettings ++ buildSettings).settings(
scalaVersion := "2.10.0-RC3",
templatesImport ++= Seq(
"lila.game.{ DbGame, DbPlayer, Pov }",
"lila.user.User",
@ -70,14 +62,15 @@ object ApplicationBuild extends Build with Resolvers with Dependencies {
"lila.http.Context",
"com.github.ornicar.paginator.Paginator"),
resolvers ++= Seq(iliaz, sonatype, sonatypeS, typesafe, t2v, guice, jgitMaven, christophs)
) //dependsOn scalachess aggregate scalachess
) dependsOn scalachess aggregate scalachess
// lazy val scalachess = Project("scalachess", file("scalachess")).settings(
// resolvers := Seq(iliaz),
// libraryDependencies := Seq(scalaz, scalalib, hasher, jodaTime, jodaConvert)
// )
lazy val scalachess = Project("scalachess", file("scalachess"), settings = Project.defaultSettings ++ buildSettings).settings(
resolvers := Seq(iliaz, sonatype),
scalaVersion := "2.10.0-RC3",
libraryDependencies := Seq(scalaz, scalalib, hasher, jodaTime, jodaConvert)
)
// lazy val cli = Project("cli", file("cli"), settings = buildSettings).settings(
// libraryDependencies ++= Seq(scalastic)
// ) dependsOn lila
lazy val cli = Project("cli", file("cli"), settings = buildSettings).settings(
libraryDependencies ++= Seq(scalastic)
) dependsOn lila
}

View File

@ -8,4 +8,4 @@ resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/release
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.1-RC1")
addSbtPlugin("play" % "sbt-plugin" % "2.1-SNAPSHOT")

@ -1 +1 @@
Subproject commit c9e9448e40c1ce5d5e2c1762ee0fcf43a4ccd26f
Subproject commit d7f00b7275bb43179e4eebadc4c63e65a1b05085