forked from hadmyral/ynap-fp-workshop-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
82 lines (74 loc) · 1.91 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
addCommandAlias("fm", "all compile:scalafmt test:scalafmt")
addCommandAlias("cc", "all clean compile")
addCommandAlias("c", "compile")
addCommandAlias("t", "test")
addCommandAlias("to", "testOnly")
addCommandAlias("ps", "projects")
addCommandAlias("p", "project")
lazy val global = project
.in(file("."))
.settings(settings)
.aggregate(exercises, marsroverkata, textgame)
lazy val exercises = project
.settings(
name := "exercises",
settings
)
lazy val marsroverkata = project
.settings(
name := "marsroverkata",
settings
)
lazy val textgame: Project = project
.settings(
name := "textgame",
settings
)
lazy val settings = Seq(
organization := "io.doubleloop",
scalaVersion := "2.12.8",
version := "0.1.0-SNAPSHOT",
scalacOptions ++= scalacSettings,
resolvers ++= resolversSettings,
libraryDependencies ++= libsSettings,
testFrameworks += new TestFramework("minitest.runner.Framework"),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.2.4"),
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.9")
)
lazy val scalacSettings = Seq(
"-encoding",
"UTF-8",
"-deprecation",
"-unchecked",
"-feature",
"-explaintypes",
"-opt-warnings",
"-language:existentials",
"-language:higherKinds",
"-opt:l:inline",
"-opt-inline-from:<source>",
"-Ypartial-unification",
"-Yrangepos",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Ywarn-extra-implicit",
"-Ywarn-inaccessible",
"-Ywarn-infer-any",
"-Ywarn-nullary-override",
"-Ywarn-nullary-unit",
"-Ywarn-unused:_,-imports",
"-Xsource:2.13",
"-Xlint:_,-type-parameter-shadow",
"-Xfuture",
"-Xfatal-warnings"
)
lazy val resolversSettings = Seq(
Resolver.sonatypeRepo("public"),
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
lazy val libsSettings = Seq(
"io.monix" %% "minitest" % "2.3.2" % Test
)