diff options
author | Diego Parra <dparra@despegar.com> | 2013-05-03 17:06:10 -0300 |
---|---|---|
committer | Diego Parra <dparra@despegar.com> | 2013-05-03 17:06:10 -0300 |
commit | 2caece9ef7574406c548b4a1f333de4c9579b3a2 (patch) | |
tree | 9536c6b95fac7dca34a5c2dae27d931b88694632 /project | |
parent | fc8a371548d9de3c5e0719dcfcf041ca31bc2227 (diff) | |
download | Kamon-2caece9ef7574406c548b4a1f333de4c9579b3a2.tar.gz Kamon-2caece9ef7574406c548b4a1f333de4c9579b3a2.tar.bz2 Kamon-2caece9ef7574406c548b4a1f333de4c9579b3a2.zip |
Initial Commit Kamon
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 17 | ||||
-rw-r--r-- | project/Dependencies.scala | 32 | ||||
-rw-r--r-- | project/Settings.scala | 25 | ||||
-rw-r--r-- | project/plugins.sbt | 4 |
4 files changed, 78 insertions, 0 deletions
diff --git a/project/Build.scala b/project/Build.scala new file mode 100644 index 00000000..49366bd5 --- /dev/null +++ b/project/Build.scala @@ -0,0 +1,17 @@ +import sbt._ +import Keys._ + +object Build extends Build { + import Dependencies._ + import Settings._ + + + lazy val root = Project("kamon", file(".")) + .settings(basicSettings: _*) + .settings( + libraryDependencies ++= + compile(akkaActor, sprayCan, sprayClient, sprayRouting, sprayServlet, aspectJ, metrics, newrelic, metricsScala) ++ + test(scalatest, sprayTestkit)) + + +}
\ No newline at end of file diff --git a/project/Dependencies.scala b/project/Dependencies.scala new file mode 100644 index 00000000..ab32fe6f --- /dev/null +++ b/project/Dependencies.scala @@ -0,0 +1,32 @@ +import sbt._ + +object Dependencies { + + val resolutionRepos = Seq( + "spray repo" at "http://repo.spray.io/" + ) + + val sprayCan = "io.spray" % "spray-can" % "1.1-M7" + val sprayRouting = "io.spray" % "spray-routing" % "1.1-M7" + val sprayTestkit = "io.spray" % "spray-testkit" % "1.1-M7" + val sprayClient = "io.spray" % "spray-client" % "1.1-M7" + val sprayServlet = "io.spray" % "spray-servlet" % "1.1-M7" + val scalaReflect = "org.scala-lang" % "scala-reflect" % "2.10.1" + val akkaActor = "com.typesafe.akka" %% "akka-actor" % "2.1.2" + val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % "2.1.2" + val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % "2.1.2" + val scalatest = "org.scalatest" %% "scalatest" % "1.9.1" + val logback = "ch.qos.logback" % "logback-classic" % "1.0.10" + val aspectJ = "org.aspectj" % "aspectjrt" % "1.7.2" + val metrics = "com.yammer.metrics" % "metrics-core" % "2.2.0" + val metricsScala = "com.yammer.metrics" % "metrics-scala_2.9.1" % "2.2.0" + val newrelic = "com.newrelic.agent.java" % "newrelic-api" % "2.17.2" + + + + def compile (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile") + def provided (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "provided") + def test (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "test") + def runtime (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "runtime") + def container (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "container") +} diff --git a/project/Settings.scala b/project/Settings.scala new file mode 100644 index 00000000..e878e881 --- /dev/null +++ b/project/Settings.scala @@ -0,0 +1,25 @@ +import sbt._ +import Keys._ + +object Settings { + val VERSION = "0.1-SNAPSHOT" + + lazy val basicSettings = seq( + version := VERSION, + organization := "com.despegar", + scalaVersion := "2.10.1", + resolvers ++= Dependencies.resolutionRepos, + scalacOptions := Seq( + "-encoding", + "utf8", + "-feature", + "-unchecked", + "-deprecation", + "-target:jvm-1.6", + "-language:postfixOps", + "-language:implicitConversions", + "-Xlog-reflective-calls" + ) + ) +} + diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 00000000..91cadf24 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1,4 @@ +resolvers += "Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" + +addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0") + |