enable scala new compiler backend for speed and jar size!
This commit is contained in:
parent
fc3fcc1a76
commit
aa0ab2798d
|
@ -35,7 +35,7 @@ object ApplicationBuild extends Build {
|
|||
scalaz, scalalib, hasher, config, apache,
|
||||
jgit, findbugs, RM, PRM, akka.actor, akka.slf4j,
|
||||
spray.caching, maxmind, prismic,
|
||||
kamon.core, kamon.statsd, pushy),
|
||||
kamon.core, kamon.statsd, pushy, java8compat),
|
||||
TwirlKeys.templateImports ++= Seq(
|
||||
"lila.game.{ Game, Player, Pov }",
|
||||
"lila.tournament.Tournament",
|
||||
|
|
|
@ -22,7 +22,7 @@ object BuildSettings {
|
|||
publishArtifact in (Compile, packageSrc) := false
|
||||
)
|
||||
|
||||
def defaultDeps = Seq(scalaz, scalalib, jodaTime, spray.util, ws)
|
||||
def defaultDeps = Seq(scalaz, scalalib, jodaTime, spray.util, ws, java8compat)
|
||||
|
||||
def compile(deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile")
|
||||
def provided(deps: ModuleID*): Seq[ModuleID] = deps map (_ % "provided")
|
||||
|
@ -41,7 +41,9 @@ object BuildSettings {
|
|||
) ++ buildSettings ++ srcMain
|
||||
)
|
||||
|
||||
val compilerOptions = Seq("-deprecation", "-unchecked", "-feature", "-language:_")
|
||||
val compilerOptions = Seq(
|
||||
"-deprecation", "-unchecked", "-feature", "-language:_",
|
||||
"-Ybackend:GenBCode", "-Ydelambdafy:method", "-target:jvm-1.8")
|
||||
|
||||
val srcMain = Seq(
|
||||
scalaSource in Compile <<= (sourceDirectory in Compile)(identity),
|
||||
|
|
|
@ -40,6 +40,7 @@ object Dependencies {
|
|||
val prismic = "io.prismic" %% "scala-kit" % "1.2.11-THIB"
|
||||
val stm = "org.scala-stm" %% "scala-stm" % "0.7"
|
||||
val pushy = "com.relayrides" % "pushy" % "0.4.3"
|
||||
val java8compat = "org.scala-lang.modules" %% "scala-java8-compat" % "0.7.0"
|
||||
|
||||
object play {
|
||||
val version = "2.4.6"
|
||||
|
|
Loading…
Reference in a new issue