-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
55 lines (48 loc) · 1.31 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
import Dependencies._
ThisBuild / organization := "dev.insideyou"
ThisBuild / scalaVersion := "3.2.1"
ThisBuild / scalacOptions ++=
Seq(
"-deprecation",
"-explain",
"-feature",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Yexplicit-nulls", // experimental (I've seen it cause issues with circe)
"-Ykind-projector",
"-Ysafe-init", // experimental (I've seen it cause issues with circe)
) ++ Seq("-rewrite", "-indent") ++ Seq("-source", "future-migration")
lazy val `yfp` =
project
.in(file("."))
.settings(name := "yfp")
.settings(commonSettings)
.settings(dependencies)
lazy val commonSettings = {
lazy val commonScalacOptions = Seq(
Compile / console / scalacOptions --= Seq(
"-Wunused:_",
"-Xfatal-warnings",
),
Test / console / scalacOptions :=
(Compile / console / scalacOptions).value,
)
lazy val otherCommonSettings = Seq(
update / evictionWarningOptions := EvictionWarningOptions.empty
)
Seq(
commonScalacOptions,
otherCommonSettings,
).reduceLeft(_ ++ _)
}
lazy val dependencies = Seq(
libraryDependencies ++= Seq(
// main dependencies
),
libraryDependencies ++= Seq(
com.eed3si9n.expecty,
org.scalatest.scalatest,
org.scalatestplus.`scalacheck-1-17`,
).map(_ % Test),
)