Skip to content

Commit

Permalink
minor build improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
levkhomich committed Dec 26, 2014
1 parent 4be4d86 commit c79e86c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ object Dependencies {

object Compile {

def sprayRouting(scalaVersion: String) = {
def sprayRouting(scalaVersion: String): ModuleID = {
if (scalaVersion.startsWith("2.10"))
"io.spray" % "spray-routing" % "1.3.1"
else
Expand All @@ -182,11 +182,11 @@ object Dependencies {

object Test {

def sprayTestkit(scalaVersion: String) = {
def sprayTestkit(scalaVersion: String): ModuleID = {
if (scalaVersion.startsWith("2.10"))
"io.spray" % "spray-testkit" % "1.3.1"
"io.spray" % "spray-testkit" % "1.3.1" % "test"
else
"io.spray" %% "spray-testkit" % "1.3.2"
"io.spray" %% "spray-testkit" % "1.3.2" % "test"
}

val specs = "org.specs2" %% "specs2" % "2.3.11" % "test"
Expand All @@ -197,9 +197,9 @@ object Dependencies {
val play = Seq(Compile.play)
val thrift = Seq(Compile.libThrift, Compile.slf4jLog4j12)

def spray(scalaVersion: String) =
def spray(scalaVersion: String): Seq[ModuleID] =
Seq(Compile.sprayRouting(scalaVersion))

def test(scalaVersion: String) =
def test(scalaVersion: String): Seq[ModuleID] =
Seq(Test.specs, Test.finagle, Test.sprayTestkit(scalaVersion))
}

0 comments on commit c79e86c

Please sign in to comment.