-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (46 loc) · 1.85 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
lazy val commonSettings = Seq(
scalaVersion := "2.11.7",
// http://tpolecat.github.io/2014/04/11/scalac-flags.html
scalacOptions in (Compile, compile) ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"),
// TODO : running into an inferred any near forAll in tests
wartremoverErrors in (Compile, compile) ++= Seq(Wart.Any, Wart.Serializable),
resolvers += "Linter Repository" at "https://hairyfotr.github.io/linteRepo/releases",
addCompilerPlugin("com.foursquare.lint" %% "linter" % "0.1.10"))
lazy val rootSettings = Seq(
testOptions in Test += Tests.Argument("-verbosity", "1"),
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.1.0",
"org.spire-math" %% "spire" % "0.10.1",
"org.scalacheck" %% "scalacheck" % "1.12.3",
"com.github.alexarchambault" %% "scalacheck-shapeless_1.12" % "0.1.1"),
resolvers += "bintray/non" at "http://dl.bintray.com/non/maven",
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.5.4"))
lazy val root = Project("ndim-rtree", file("."))
.settings(commonSettings:_*)
.settings(rootSettings:_*)
lazy val benchmarkSettings = Seq(
fork in run := true,
javaOptions in run += "-Xmx4G",
resolvers += "bintray/meetup" at "http://dl.bintray.com/meetup/maven",
libraryDependencies ++= Seq(
"com.meetup" %% "archery" % "0.4.0",
"ichi.bench" % "thyme" % "0.1.1" from "http://plastic-idolatry.com/jars/thyme-0.1.1.jar"))
lazy val benchmark = (project in file("benchmark"))
.dependsOn(root)
.settings(commonSettings:_*)
.settings(benchmarkSettings:_*)