diff options
Diffstat (limited to 'kamon-examples/kamon-play-example-2.4.x/project')
3 files changed, 63 insertions, 0 deletions
diff --git a/kamon-examples/kamon-play-example-2.4.x/project/Build.scala b/kamon-examples/kamon-play-example-2.4.x/project/Build.scala new file mode 100644 index 00000000..b96b2436 --- /dev/null +++ b/kamon-examples/kamon-play-example-2.4.x/project/Build.scala @@ -0,0 +1,52 @@ +import java.io.File +import sbt._ +import Keys._ +import play.Play.autoImport._ +import sbt.Keys._ +import sbt._ +import com.typesafe.sbt.web.SbtWeb + + +object ApplicationBuild extends Build { + + val appName = "Kamon-Play-Example" + val appVersion = "1.0-SNAPSHOT" + + val resolutionRepos = Seq( + "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/", + "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", + "Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases", + "Kamon Repository Snapshots" at "http://snapshots.kamon.io" + ) + + val defaultSettings = Seq( + scalaVersion := "2.10.5", + resolvers ++= resolutionRepos, + scalacOptions := Seq( + "-encoding", + "utf8", + "-g:vars", + "-feature", + "-unchecked", + "-deprecation", + "-target:jvm-1.6", + "-language:postfixOps", + "-language:implicitConversions", + "-Xlog-reflective-calls" + )) + + val kamonVersion = "0.4.1-SNAPSHOT" + + val dependencies = Seq( + "io.kamon" %% "kamon-core" % kamonVersion, + "io.kamon" %% "kamon-play-24" % kamonVersion, + "io.kamon" %% "kamon-statsd" % kamonVersion, + "io.kamon" %% "kamon-log-reporter" % kamonVersion, + "io.kamon" %% "kamon-system-metrics" % kamonVersion, + "org.aspectj" % "aspectjweaver" % "1.8.6" + ) + + val main = Project(appName, file(".")).enablePlugins(play.PlayScala, SbtWeb) + .settings(libraryDependencies ++= dependencies) + .settings(defaultSettings: _*) +} diff --git a/kamon-examples/kamon-play-example-2.4.x/project/build.properties b/kamon-examples/kamon-play-example-2.4.x/project/build.properties new file mode 100644 index 00000000..a6e117b6 --- /dev/null +++ b/kamon-examples/kamon-play-example-2.4.x/project/build.properties @@ -0,0 +1 @@ +sbt.version=0.13.8 diff --git a/kamon-examples/kamon-play-example-2.4.x/project/plugins.sbt b/kamon-examples/kamon-play-example-2.4.x/project/plugins.sbt new file mode 100644 index 00000000..26bdf8cf --- /dev/null +++ b/kamon-examples/kamon-play-example-2.4.x/project/plugins.sbt @@ -0,0 +1,10 @@ +// Comment to get more information during initialization +logLevel := Level.Warn + +// The Typesafe repository +resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/" + +// Use the Play sbt plugin for Play projects +addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.2") + +addSbtPlugin("io.kamon" % "aspectj-play-24-runner" % "0.1.3") |