aboutsummaryrefslogtreecommitdiff
path: root/kamon-examples/kamon-play-example/project/Build.scala
blob: c9693c2439836ce29ea9072399e0daae61a38249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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.11.0",
      resolvers ++= resolutionRepos,
      scalacOptions := Seq(
        "-encoding",
        "utf8",
        "-g:vars",
        "-feature",
        "-unchecked",
        "-deprecation",
        "-target:jvm-1.6",
        "-language:postfixOps",
        "-language:implicitConversions",
        "-Xlog-reflective-calls"
      ))

  val dependencies = Seq(
    "io.kamon"    %% "kamon-core"           % "0.3.3",
    "io.kamon"    %% "kamon-play"           % "0.3.3",
    "io.kamon"    %% "kamon-statsd"         % "0.3.3",
    "io.kamon"    %% "kamon-log-reporter"   % "0.3.3",
    "io.kamon"    %% "kamon-system-metrics" % "0.3.3",
    "org.aspectj" % "aspectjweaver"         % "1.8.1"
    )

  val main = Project(appName, file(".")).enablePlugins(play.PlayScala, SbtWeb)
                                        .settings(libraryDependencies ++= dependencies)
                                        .settings(defaultSettings: _*)
}