-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
70 lines (52 loc) · 3.15 KB
/
build.sbt
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import play.PlayImport.PlayKeys._
scalaVersion in ThisBuild := "2.11.5"
organization in ThisBuild := "com.timgroup"
version in ThisBuild := "2.3." + Option(System.getProperty("BUILD_NUMBER", null)).getOrElse("0-SNAPSHOT")
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "repo-public" at "http://repo.youdevise.com:8081/nexus/content/groups/public"
publishTo in ThisBuild := Some("TIM Group Repo" at "http://repo.youdevise.com:8081/nexus/content/repositories/yd-release-candidates")
credentials += Credentials(new File("/etc/sbt/credentials"))
crossScalaVersions := Seq("2.11.5")
val playVersion = play.core.PlayVersion.current // see /project/play.sbt
val tuckerVersion = "1.0.1526"
val metricsVersion = "3.2.0"
val appName = "play-tucker"
val appVersion = "1.0-SNAPSHOT"
lazy val compileOptions = scalacOptions ++= Seq("-deprecation", "-Ylog-classpath", "-unchecked", "-Xfatal-warnings", "-Xlint", "-feature")
lazy val commonLibs = Seq(
"com.typesafe.play" %% "play" % playVersion,
"com.timgroup" % "Tucker" % tuckerVersion intransitive(),
"org.slf4j" % "slf4j-api" % "[1.7.6]",
"org.mockito" % "mockito-core" % "1.9.0" % "test",
"org.scalatest" %% "scalatest" % "2.2.0" % "test"
)
val playTuckerCore = (project in file("modules/play-tucker-core/")).enablePlugins(PlayScala)
.settings(compileOptions)
.settings(libraryDependencies ++= commonLibs)
.settings(libraryDependencies += "io.dropwizard.metrics" % "metrics-core" % metricsVersion)
val playMetricsGraphite = (project in file("modules/play-metrics-graphite/")).enablePlugins(PlayScala)
.settings(compileOptions)
.settings(libraryDependencies ++= commonLibs
:+ "io.dropwizard.metrics" % "metrics-core" % metricsVersion
:+ "io.dropwizard.metrics" % "metrics-graphite" % metricsVersion
:+ "io.dropwizard.metrics" % "metrics-jvm" % metricsVersion
:+ "io.dropwizard.metrics" % "metrics-servlet" % metricsVersion
:+ "io.dropwizard.metrics" % "metrics-servlets" % metricsVersion)
val playTuckerBoneCp = (project in file("modules/play-tucker-bonecp")).enablePlugins(PlayScala)
.settings(compileOptions)
.settings(libraryDependencies ++= commonLibs
:+ jdbc
:+ "mysql" % "mysql-connector-java" % "5.1.27"
)
.dependsOn(playTuckerCore)
.dependsOn(playMetricsGraphite)
val playTuckerJvmMetrics = (project in file("modules/play-tucker-jvmmetrics")).enablePlugins(PlayScala)
.settings(compileOptions)
.settings(libraryDependencies ++= commonLibs)
.dependsOn(playTuckerCore)
.dependsOn(playMetricsGraphite)
val playTuckerSampleApp = (project in file(".")).enablePlugins(PlayScala)
.settings(compileOptions)
.dependsOn(playTuckerCore, playMetricsGraphite, playTuckerBoneCp, playTuckerJvmMetrics)
.aggregate(playTuckerCore, playMetricsGraphite, playTuckerBoneCp, playTuckerJvmMetrics)
.settings(routesImport ++= Seq("scala.language.reflectiveCalls"))