-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
61 lines (47 loc) · 2.37 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
import de.johoop.jacoco4sbt.Thresholds
name := "squbs-java-seed"
version := "0.0.1-SNAPSHOT"
organization in ThisBuild := "org.squbs.sample"
scalaVersion := "2.11.7"
val squbsV = "0.7.1-SNAPSHOT"
val akkaV = "2.3.13"
val jacksonV = "2.6.3"
crossPaths := false
resolvers += Resolver.sonatypeRepo("snapshots")
Revolver.settings
jacoco.settings
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-encoding", "utf8")
javacOptions in Compile += "-parameters" // This is needed for jackson-module-parameter-names.
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-v", "-a")
testOptions in jacoco.Config += Tests.Argument(TestFrameworks.JUnit, "-v", "-a")
// jacoco.reportFormats in jacoco.Config := Seq(HTMLReport())
// Jacoco instruments weird things we can't control, like synthetic methods and constructors.
// We can only go to 95% for most things measured by Jacoco.
jacoco.thresholds in jacoco.Config := Thresholds(line = 95.0, instruction = 95.0, method = 95.0, clazz = 95.0)
// Scoverage controls. Much cleaner here. Just Scala only.
coverageMinimum := 100
coverageFailOnMinimum := true
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.1.3",
"org.squbs" %% "squbs-unicomplex" % squbsV,
"org.squbs" %% "squbs-actormonitor" % squbsV,
"org.squbs" %% "squbs-httpclient" % squbsV,
"org.squbs" %% "squbs-pattern" % squbsV,
"org.squbs" %% "squbs-admin" % squbsV,
"org.json4s" %% "json4s-jackson" % "3.3.0",
"org.scala-lang.modules" %% "scala-java8-compat" % "0.7.0",
"com.fasterxml.jackson.core" % "jackson-core" % jacksonV,
"com.fasterxml.jackson.core" % "jackson-annotations" % jacksonV,
"com.fasterxml.jackson.core" % "jackson-databind" % jacksonV,
"com.fasterxml.jackson.module" %% "jackson-module-scala" % jacksonV,
"com.fasterxml.jackson.module" % "jackson-module-parameter-names" % jacksonV,
"org.squbs" %% "squbs-testkit" % squbsV % "test",
"io.spray" %% "spray-testkit" % "1.3.3" % "test",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test->default"
)
mainClass in (Compile, run) := Some("org.squbs.unicomplex.Bootstrap")
// enable scalastyle on compile
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value
(compile in Compile) <<= (compile in Compile) dependsOn compileScalastyle