-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
53 lines (48 loc) · 1.42 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
addCommandAlias("fm", "scalafmtAll;scalafmtSbt")
addCommandAlias("cc", "all clean compile")
addCommandAlias("cn", "console")
addCommandAlias("c", "compile")
addCommandAlias("r", "run")
addCommandAlias("t", "test")
addCommandAlias("to", "testOnly")
lazy val global = project
.in(file("."))
.settings(settings)
lazy val settings = Seq(
name := "intro-scala",
organization := "io.doubleloop",
scalaVersion := "2.13.16",
version := "0.1.0-SNAPSHOT",
scalacOptions ++= scalacSettings,
resolvers ++= resolversSettings,
libraryDependencies ++= libsSettings,
testFrameworks += new TestFramework("munit.Framework"),
Test / parallelExecution := false,
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")
)
lazy val scalacSettings = Seq(
"-encoding",
"UTF-8",
"-deprecation",
"-unchecked",
"-feature",
"-explaintypes",
"-opt-warnings",
"-language:existentials",
"-language:higherKinds",
"-opt:l:inline",
"-opt-inline-from:<source>",
"-Yrangepos",
"-Ywarn-numeric-widen",
"-Ywarn-extra-implicit",
"-Xlint:_,-type-parameter-shadow,-unused",
"-Xfatal-warnings"
)
lazy val resolversSettings = (
Resolver.sonatypeOssRepos("snapshots") ++
Resolver.sonatypeOssRepos("releases")
).toSeq
lazy val libsSettings = Seq(
"org.scalameta" %% "munit" % "1.1.0" % Test,
"org.scalameta" %% "munit-scalacheck" % "1.1.0" % Test
)