-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
89 lines (79 loc) · 1.93 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
import scalariform.formatter.preferences._
// Resolvers
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots")
)
// Dependencies
val compilerPlugins = Seq(
compilerPlugin("org.spire-math" %% "kind-projector" % "0.9.4")
)
val rootDependencies = Seq(
"io.getquill" %% "quill-cassandra" % "2.1.0",
"org.typelevel" %% "cats-core" % "1.0.0-RC1"
)
val testDependencies = Seq (
)
val dependencies =
compilerPlugins ++
rootDependencies ++
testDependencies
// Settings
//
val compileSettings = Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:_",
"-unchecked",
//"-Xfatal-warnings",
"-Xlint",
"-Ybackend:GenBCode",
"-Ydelambdafy:method",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import"
)
val forkedJvmOption = Seq(
"-server",
"-Dfile.encoding=UTF8",
"-Duser.timezone=GMT",
"-Xss1m",
"-Xms2048m",
"-Xmx2048m",
"-XX:+CMSClassUnloadingEnabled",
"-XX:ReservedCodeCacheSize=256m",
"-XX:+DoEscapeAnalysis",
"-XX:+UseConcMarkSweepGC",
"-XX:+UseParNewGC",
"-XX:+UseCodeCacheFlushing",
"-XX:+UseCompressedOops"
)
val pluginsSettings =
scalariformSettings
val settings = Seq(
name := "quill-test",
version := "0.1-SNAPSHOT",
scalaVersion := "2.11.11",
libraryDependencies ++= dependencies,
fork in run := true,
fork in Test := true,
fork in testOnly := true,
connectInput in run := true,
javaOptions in run ++= forkedJvmOption,
javaOptions in Test ++= forkedJvmOption,
scalacOptions := compileSettings,
//unmanagedClasspath in Compile += baseDirectory.value / "src" / "main" / "resources",
// formatting
//
ScalariformKeys.preferences := PreferencesImporterExporter.loadPreferences(( file(".") / "formatter.preferences").getPath)
)
val main =
project
.in(file("."))
.settings(
pluginsSettings ++ settings:_*
)