diff options
author | Diego <diegolparra@gmail.com> | 2016-12-13 13:06:29 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2016-12-13 13:06:29 -0300 |
commit | a74379942b2c672c9ba507093f27ead5693c1240 (patch) | |
tree | 1a22f1ae9080e4ec7496f0b5536107b35a5acd68 /kamon-examples/kamon-play-example-2.4.x/project | |
parent | ee7e2218f869eeea8be00441c82b5e6e8f4d99eb (diff) | |
download | Kamon-a74379942b2c672c9ba507093f27ead5693c1240.tar.gz Kamon-a74379942b2c672c9ba507093f27ead5693c1240.tar.bz2 Kamon-a74379942b2c672c9ba507093f27ead5693c1240.zip |
wip
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") |