-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
54 lines (48 loc) · 2.08 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
name := "chadash"
version := scala.util.Properties.envOrElse("BUILD_VERSION", "DEV")
scalaVersion := "2.11.12"
scalacOptions ++= Seq("-feature", "-target:jvm-1.8")
lazy val root = (project in file(".")).enablePlugins(PlayScala).settings(
javaOptions in Test += "-Dconfig.file=conf/application.test.conf"
//FOR DEBUGGING TESTS:
//,javaOptions in Test += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=9999"
).settings(libraryDependencies ~= (_.map(excludeSpecs2)))
val AwsVersion = "1.11.298"
libraryDependencies ++= Seq(
ws,
filters,
"com.amazonaws" % "aws-java-sdk-cloudformation" % AwsVersion,
"com.amazonaws" % "aws-java-sdk-s3" % AwsVersion,
"com.amazonaws" % "aws-java-sdk-autoscaling" % AwsVersion,
"com.amazonaws" % "aws-java-sdk-elasticloadbalancing" % AwsVersion,
"com.google.code.findbugs" % "jsr305" % "3.0.0",
"commons-io" % "commons-io" % "2.4",
"com.typesafe.akka" %% "akka-actor" % "2.3.9",
"com.typesafe.akka" %% "akka-slf4j" % "2.3.9",
"com.typesafe.akka" %% "akka-testkit" % "2.3.9" % "test",
"org.scalatestplus" %% "play" % "1.2.0" % "test",
"org.mockito" % "mockito-core" % "2.16.0" % "test",
"com.google.inject" % "guice" % "3.0"
)
def excludeSpecs2(module: ModuleID): ModuleID =
module.excludeAll(ExclusionRule(organization =
"org.specs2")).exclude("com.novocode", "junit-interface")
//----
// Create the buildInfo object at compile time
//----
buildInfoSettings
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
buildInfoKeys ++= Seq[BuildInfoKey](
BuildInfoKey.action("gitCommit") {
scala.util.Properties.envOrElse("GIT_COMMIT", "")
},
BuildInfoKey.action("buildTime") {
if (version.value != "DEV") System.currentTimeMillis else ""
}
)
buildInfoPackage := "com.lifeway.chadash.appversion"
ScoverageSbtPlugin.ScoverageKeys.coverageMinimum := 60
ScoverageSbtPlugin.ScoverageKeys.coverageFailOnMinimum := false
ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := true
ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := "<empty>;appversion.BuildInfo;"