-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
66 lines (60 loc) · 1.61 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
organization in ThisBuild := "io.malcolmgreaves"
name := "auto-gfqg"
version in ThisBuild := {
val major: Int = 0
val minor: Int = 0
val patch: Int = 0
s"$major.$minor.$patch"
}
import SharedBuild._
// dependencies
enablePlugins(PackPlugin)
addCompilerPlugin(scalaMacros)
addCompilerPlugin(warningSilencer)
libraryDependencies ++=
mainDeps ++
testDeps
resolvers in ThisBuild := Seq(
// sonatype, maven central
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
// bintray
"Scalaz Bintray" at "http://dl.bintray.com/scalaz/releases",
Resolver.bintrayRepo("mfglabs", "maven"),
Resolver.bintrayRepo("dwhjames", "maven"),
// etc.
"Confluent" at "http://packages.confluent.io/maven/"
)
// runtime & compiliation
lazy val javaV = "1.8"
scalaVersion in ThisBuild := "2.11.8"
scalacOptions in ThisBuild := Seq(
"-optimize",
"-deprecation",
"-feature",
"-unchecked",
s"-target:jvm-$javaV",
"-encoding",
"utf8",
"-language:postfixOps",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-language:reflectiveCalls",
"-Yno-adapted-args",
"-Ywarn-value-discard",
"-Xlint",
"-Xfuture",
"-Ywarn-dead-code",
"-Xfatal-warnings" // Every warning is esclated to an error.
)
javacOptions in ThisBuild := Seq("-source", javaV, "-target", javaV)
javaOptions in ThisBuild := Seq(
"-server",
"-XX:+AggressiveOpts",
"-XX:+TieredCompilation",
"-XX:CompileThreshold=100",
"-Xmx3000M",
"-XX:+UseG1GC"
)