Permalink
Browse files

Merge branch 'scala' of code.corp.twilio.com:kelvin/shadow into scala

  • Loading branch information...
kelvl committed Apr 28, 2013
2 parents a35d5d4 + 0040dcf commit 40391b2b42209b3817452a4146834fee121f488d
Showing with 44 additions and 0 deletions.
  1. +44 −0 project/ShadowBuild.scala
View
@@ -0,0 +1,44 @@
+import sbt._
+import sbt.Keys._
+import sbtassembly.Plugin._
+import AssemblyKeys._
+import spray.revolver.RevolverPlugin._
+
+object ShadowBuild extends Build {
+
+ lazy val shadow = Project(
+ id = "shadow",
+ base = file("."),
+ settings = Project.defaultSettings ++ Revolver.settings ++ assemblySettings ++ Seq(
+ name := "shadow",
+ organization := "com.twilio",
+ scalaVersion := "2.10.0",
+ mainClass in assembly := Some("com.twilio.shadow.Boot"),
+ assembleArtifact in packageScala := true, //exclude scala library from assembly artifact
+ test in assembly := {}, //disable running test when creating assembly aritifact
+ assemblyCacheOutput in assembly := true,
+ libraryDependencies ++= List(
+
+ "io.spray" % "spray-can" % "1.1-M7",
+ "io.spray" % "spray-routing" % "1.1-M7",
+ "io.spray" % "spray-testkit" % "1.1-M7",
+ "com.typesafe.akka" %% "akka-actor" % "2.1.0",
+ "org.json4s" %% "json4s-native" % "3.2.4",
+ "nl.grons" %% "metrics-scala" % "2.2.0",
+
+ // test
+ "org.scalatest" %% "scalatest" % "2.0.M5b" % "test",
+ "com.xebialabs.restito" % "restito" % "0.4-alpha-2" % "test",
+ "com.typesafe.akka" %% "akka-testkit" % "2.1.0" % "test"
+
+ ),
+ compileOrder := CompileOrder.Mixed,
+ mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) => { case x => old(x) }},
+ classpathTypes ~= (_ + "orbit"),
+ resolvers ++= List(
+ "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
+ "spray repo" at "http://repo.spray.io"
+ )
+ )
+ )
+}

0 comments on commit 40391b2

Please sign in to comment.