diff options
-rw-r--r-- | kamon-play/src/main/resources/META-INF/aop.xml | 11 | ||||
-rw-r--r-- | project/Build.scala | 10 | ||||
-rw-r--r-- | project/Dependencies.scala | 4 |
3 files changed, 23 insertions, 2 deletions
diff --git a/kamon-play/src/main/resources/META-INF/aop.xml b/kamon-play/src/main/resources/META-INF/aop.xml new file mode 100644 index 00000000..3b3314d1 --- /dev/null +++ b/kamon-play/src/main/resources/META-INF/aop.xml @@ -0,0 +1,11 @@ +<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd"> + +<aspectj> + <aspects> + <aspect name="kamon.play.filter.RequestTracing"/> + </aspects> + + <weaver options="-verbose -showWeaveInfo"> + <include within="play.api..*"/> + </weaver> +</aspectj> diff --git a/project/Build.scala b/project/Build.scala index d91d9d85..1b9c01ca 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -9,7 +9,7 @@ object Build extends Build { import Dependencies._ lazy val root = Project("root", file(".")) - .aggregate(kamonCore, kamonSpray, kamonNewrelic, kamonPlayground, kamonDashboard, kamonTestkit) + .aggregate(kamonCore, kamonSpray, kamonNewrelic, kamonPlayground, kamonDashboard, kamonTestkit, kamonPlay) .settings(basicSettings: _*) .settings(formatSettings: _*) .settings(noPublishing: _*) @@ -73,6 +73,14 @@ object Build extends Build { .dependsOn(kamonCore) + lazy val kamonPlay = Project("kamon-play", file("kamon-play")) + .settings(basicSettings: _*) + .settings(formatSettings: _*) + .settings(aspectJSettings: _*) + .settings(libraryDependencies ++= compile(playTest, aspectJ) ++ test(playTest)) + .dependsOn(kamonCore) + + lazy val site = Project("site", file("site")) .settings(basicSettings: _*) .settings(siteSettings: _*) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 85186ce6..5e59aa4d 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -4,7 +4,8 @@ object Dependencies { val resolutionRepos = Seq( "spray repo" at "http://repo.spray.io/", - "spray nightlies repo" at "http://nightlies.spray.io" + "spray nightlies repo" at "http://nightlies.spray.io", + "typesafe repo" at "http://repo.typesafe.com/typesafe/releases/" ) val sprayVersion = "1.2.0" @@ -25,6 +26,7 @@ object Dependencies { val akkaActor = "com.typesafe.akka" %% "akka-actor" % akkaVersion val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % akkaVersion val akkaTestKit = "com.typesafe.akka" %% "akka-testkit" % akkaVersion + val playTest = "com.typesafe.play" %% "play-test" % "2.2.1" def compile (deps: ModuleID*): Seq[ModuleID] = deps map (_ % "compile") |