diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-05-23 18:27:58 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-05-23 18:27:58 -0300 |
commit | a12e8579e09c5fd8fdf98ba4553f0a232ddfea6b (patch) | |
tree | 2388d67e5166687bf5b904c3ebcf7b54db679d1b /project | |
parent | c56018c9a3bef9e99cc38f1804eafdfe5c8be45c (diff) | |
download | Kamon-a12e8579e09c5fd8fdf98ba4553f0a232ddfea6b.tar.gz Kamon-a12e8579e09c5fd8fdf98ba4553f0a232ddfea6b.tar.bz2 Kamon-a12e8579e09c5fd8fdf98ba4553f0a232ddfea6b.zip |
included aspectj support for running tests, and simple test stub
Diffstat (limited to 'project')
-rw-r--r-- | project/AspectJ.scala | 14 | ||||
-rw-r--r-- | project/Build.scala | 6 | ||||
-rw-r--r-- | project/Dependencies.scala | 2 | ||||
-rw-r--r-- | project/plugins.sbt | 2 |
4 files changed, 21 insertions, 3 deletions
diff --git a/project/AspectJ.scala b/project/AspectJ.scala new file mode 100644 index 00000000..7ba359eb --- /dev/null +++ b/project/AspectJ.scala @@ -0,0 +1,14 @@ +import sbt._ +import sbt.Keys._ +import com.typesafe.sbt.SbtAspectj +import com.typesafe.sbt.SbtAspectj.Aspectj +import com.typesafe.sbt.SbtAspectj.AspectjKeys._ + + +object AspectJ { + + lazy val aspectJSettings = SbtAspectj.aspectjSettings ++ Seq( + fork in Test := true, + javaOptions in Test <++= weaverOptions in Aspectj + ) +}
\ No newline at end of file diff --git a/project/Build.scala b/project/Build.scala index 97f23aa6..601d5089 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -2,16 +2,18 @@ import sbt._ import Keys._ object Build extends Build { - import Dependencies._ + import AspectJ._ import Settings._ + import Dependencies._ lazy val root = Project("kamon", file(".")) .settings(basicSettings: _*) .settings(revolverSettings: _*) + .settings(aspectJSettings: _*) .settings( libraryDependencies ++= compile(akkaActor, sprayCan, sprayClient, sprayRouting, sprayServlet, aspectJ, metrics, newrelic, metricsScala, sprayJson, guava) ++ - test(scalatest, sprayTestkit)) + test(specs2, sprayTestkit)) }
\ No newline at end of file diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 357b7d7d..5b8543c6 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -17,7 +17,7 @@ object Dependencies { 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 specs2 = "org.specs2" %% "specs2" % "1.14" 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" diff --git a/project/plugins.sbt b/project/plugins.sbt index 34921388..92902e2b 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -4,3 +4,5 @@ addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.4.0") addSbtPlugin("io.spray" % "sbt-revolver" % "0.6.2") +addSbtPlugin("com.typesafe.sbt" % "sbt-aspectj" % "0.9.0") + |