@@ -65,22 +65,30 @@ object build extends Build {
6565 unmanagedSourceDirectories in c <+= (scalaVersion, sourceDirectory in c) {
6666 case (v, dir) if v startsWith " 2.9" => dir / " scala_2.9"
6767 case (v, dir) if v startsWith " 2.10" => dir / " scala_2.10"
68+ case (v, dir) if v startsWith " 2.11" => dir / " scala_2.10"
6869 }
6970
7071 val projectSettings = Seq (
7172 organization := " com.wordnik.swagger" ,
7273 name := " swagger-async-httpclient" ,
73- scalaVersion := " 2.10.0" ,
74- crossScalaVersions := Seq (" 2.9.1" , " 2.9.1-1" , " 2.9.2" , " 2.9.3" , " 2.10.0" ),
75- scalacOptions ++= Seq (" -unchecked" , " -deprecation" , " -optimize" , " -Xcheckinit" , " -encoding" , " utf8" , " -P:continuations:enable" ),
74+ scalaVersion := " 2.10.4" ,
75+ crossScalaVersions := Seq (" 2.10.4" , " 2.11.2" ),
76+ scalacOptions ++= Seq (" -unchecked" , " -deprecation" , " -optimize" , " -Xcheckinit" , " -encoding" , " utf8" ),
77+ scalacOptions <++= scalaVersion map {
78+ case v if v.startsWith(" 2.9" ) || v.startsWith(" 2.10" ) => Seq (" -P:continuations:enable" )
79+ case _ => Seq .empty
80+ },
7681 scalacOptions in Compile <++= scalaVersion map ({
7782 case v if v startsWith " 2.10" => Seq (" -language:implicitConversions" , " -language:reflectiveCalls" )
7883 case _ => Seq .empty
7984 }),
8085 javacOptions in compile ++= Seq (" -target" , " 1.6" , " -source" , " 1.6" , " -Xlint:deprecation" ),
8186 manifestSetting,
8287 autoCompilerPlugins := true ,
83- libraryDependencies <+= scalaVersion(sv => compilerPlugin(" org.scala-lang.plugins" % " continuations" % sv)),
88+ libraryDependencies <++= scalaVersion {
89+ case v if v.startsWith(" 2.9" ) || v.startsWith(" 2.10" ) => Seq (compilerPlugin(" org.scala-lang.plugins" % " continuations" % v))
90+ case _ => Seq .empty
91+ },
8492 parallelExecution in Test := false ,
8593 commands += Command .args(" s" , " <shell command>" ) { (state, args) =>
8694 args.mkString(" " ) ! state.log
@@ -107,18 +115,18 @@ object build extends Build {
107115 base = file(" ." ),
108116 settings = defaultSettings ++ Seq (
109117 libraryDependencies ++= Seq (
110- " org.scalatra.rl" %% " rl" % " 0.4.8 " ,
111- " org.slf4j" % " slf4j-api" % " 1.7.5 " ,
112- " ch.qos.logback" % " logback-classic" % " 1.0.13 " % " provided" ,
113- " org.json4s" %% " json4s-jackson" % " 3.2.5 " ,
118+ " org.scalatra.rl" %% " rl" % " 0.4.10 " ,
119+ " org.slf4j" % " slf4j-api" % " 1.7.7 " ,
120+ " ch.qos.logback" % " logback-classic" % " 1.1.2 " % " provided" ,
121+ " org.json4s" %% " json4s-jackson" % " 3.2.10 " ,
114122 " com.googlecode.juniversalchardet" % " juniversalchardet" % " 1.0.3" ,
115123 " eu.medsea.mimeutil" % " mime-util" % " 2.1.3" exclude(" org.slf4j" , " slf4j-log4j12" ) exclude(" log4j" , " log4j" ),
116- " com.ning" % " async-http-client" % " 1.7.19 "
124+ " com.ning" % " async-http-client" % " 1.8.14 "
117125 ),
118126 libraryDependencies <+= scalaVersion {
119127 case " 2.9.3" => " org.clapper" % " grizzled-slf4j_2.9.2" % " 0.6.10" exclude(" org.scala-lang" , " scala-library" )
120128 case v if v startsWith " 2.9" => " org.clapper" %% " grizzled-slf4j" % " 0.6.10"
121- case v => " com.typesafe" %% " scalalogging- slf4j" % " 1.0.1 "
129+ case v => " com.typesafe.scala-logging " %% " scala-logging- slf4j" % " 2.1.2 "
122130 },
123131 libraryDependencies <++= scalaVersion {
124132 case v if v startsWith " 2.9" => Seq (" com.typesafe.akka" % " akka-actor" % " 2.0.5" )
0 commit comments