diff options
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 2 | ||||
-rw-r--r-- | project/NewRelic.scala | 13 | ||||
-rw-r--r-- | project/Settings.scala | 3 | ||||
-rw-r--r-- | project/plugins.sbt | 2 |
4 files changed, 19 insertions, 1 deletions
diff --git a/project/Build.scala b/project/Build.scala index 851bc500..b1fcf4f8 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -3,6 +3,7 @@ import Keys._ object Build extends Build { import AspectJ._ + import NewRelic._ import Settings._ import Dependencies._ @@ -10,6 +11,7 @@ object Build extends Build { .settings(basicSettings: _*) .settings(revolverSettings: _*) .settings(aspectJSettings: _*) + .settings(newrelicSettings: _*) .settings( libraryDependencies ++= compile(akkaActor, akkaAgent, sprayCan, sprayClient, sprayRouting, sprayServlet, aspectJ, metrics, newrelic, metricsScala, sprayJson, guava) ++ diff --git a/project/NewRelic.scala b/project/NewRelic.scala new file mode 100644 index 00000000..766eb28d --- /dev/null +++ b/project/NewRelic.scala @@ -0,0 +1,13 @@ +import sbt.Keys._ +import com.ivantopo.sbt.newrelic.SbtNewrelic +import com.ivantopo.sbt.newrelic.SbtNewrelic.newrelic +import com.ivantopo.sbt.newrelic.SbtNewrelic.SbtNewrelicKeys._ + + +object NewRelic { + + lazy val newrelicSettings = SbtNewrelic.newrelicSettings ++ Seq( + javaOptions in run <++= jvmOptions in newrelic, + newrelicVersion in newrelic := "2.18.0" + ) +} diff --git a/project/Settings.scala b/project/Settings.scala index de8a3024..640a8013 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -8,8 +8,9 @@ object Settings { lazy val basicSettings = seq( version := VERSION, organization := "com.despegar", - scalaVersion := "2.10.1", + scalaVersion := "2.10.0", resolvers ++= Dependencies.resolutionRepos, + fork in run := true, scalacOptions := Seq( "-encoding", "utf8", diff --git a/project/plugins.sbt b/project/plugins.sbt index 92902e2b..f8ce9e3c 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -6,3 +6,5 @@ addSbtPlugin("io.spray" % "sbt-revolver" % "0.6.2") addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.9.0") +addSbtPlugin("com.ivantopo.sbt" % "sbt-newrelic" % "0.0.1") + |