forked from TokTok/jvm-toxcore-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (49 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
55
56
57
58
59
60
61
// General settings.
organization := "org.toktok"
name := "tox4j-c"
version := "0.2.3"
scalaVersion := "2.11.12"
bintrayVcsUrl := Some("https://github.com/TokTok/jvm-toxcore-c")
/******************************************************************************
* Dependencies
******************************************************************************/
// Snapshot and linter repository.
resolvers += Resolver.sonatypeRepo("snapshots")
// Build dependencies.
libraryDependencies ++= Seq(
"org.toktok" %% "tox4j-api" % version.value,
"org.toktok" %% "macros" % "0.1.1",
"com.chuusai" %% "shapeless" % "2.3.3",
"com.trueaccord.scalapb" %% "scalapb-runtime-grpc" % "0.5.43",
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2"
)
// Test dependencies.
libraryDependencies ++= Seq(
"com.storm-enroute" %% "scalameter" % "0.19",
"org.jline" % "jline" % "3.14.0",
"junit" % "junit" % "4.13",
"org.scalacheck" %% "scalacheck" % "1.13.5",
"org.scalatest" %% "scalatest" % "3.0.1",
"org.scalaz" %% "scalaz-concurrent" % "7.3.0-M27",
"org.slf4j" % "slf4j-log4j12" % "1.7.30"
) map (_ % Test)
// Add ScalaMeter as test framework.
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework")
// Disable parallel test execution, as network tests become flaky that way.
parallelExecution in Test := false
/******************************************************************************
* Other settings and plugin configuration.
******************************************************************************/
// TODO(iphydf): Require less test coverage for now, until ToxAv is tested.
import scoverage.ScoverageKeys._
coverageMinimum := 20
coverageExcludedPackages := ".*\\.proto\\..*"
import im.tox.sbt.Scalastyle
Scalastyle.projectSettings
// Mixed project.
compileOrder := CompileOrder.Mixed
scalaSource in Compile := (javaSource in Compile).value
scalaSource in Test := (javaSource in Test ).value
// Override Scalastyle configuration for test.
scalastyleConfigUrl in Test := None
scalastyleConfig in Test := (scalaSource in Test).value / "scalastyle-config.xml"