-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
70 lines (60 loc) · 1.44 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
lazy val root = (project in file(".")).settings(
commonSettings,
consoleSettings,
compilerOptions,
typeSystemEnhancements,
dependencies
)
lazy val commonSettings = Seq(
name := "Befunge-93",
scalaVersion in ThisBuild := "2.11.11",
crossScalaVersions := Seq("2.11.11", "2.12.1")
)
lazy val consoleSettings = Seq(
initialCommands := s"import befunge._",
scalacOptions in (Compile, console) -= "-Ywarn-unused-import"
)
lazy val compilerOptions =
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-encoding",
"utf8",
"-target:jvm-1.8",
"-feature",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials",
"-Ypartial-unification",
"-Ywarn-unused-import",
"-Ywarn-value-discard"
)
lazy val typeSystemEnhancements =
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
def dep(org: String)(version: String)(modules: String*) =
Seq(modules: _*) map { name =>
org %% name % version
}
lazy val dependencies = {
val cats = dep("org.typelevel")("1.0.1")(
"cats-core",
"cats-macros",
"cats-kernel",
"cats-free"
)
val fs2 = dep("co.fs2")("0.10.0-M11")(
"fs2-core",
"fs2-io"
)
def extraResolvers =
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
val deps =
libraryDependencies ++= Seq(
cats,
fs2
).flatten
Seq(deps, extraResolvers)
}