-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
54 lines (44 loc) · 1.24 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
val Scala213 = "2.13.10"
val Scala3 = "3.1.3"
ThisBuild / tlBaseVersion := "0.0"
ThisBuild / scalaVersion := Scala213
ThisBuild / crossScalaVersions := Seq(Scala213, Scala3)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / organization := "net.michalp"
ThisBuild / organizationName := "majk-p"
ThisBuild / developers := List(
tlGitHubDev("majk-p", "Michał Pawlik")
)
def compilerPlugins =
libraryDependencies ++= {
if (scalaVersion.value.startsWith("3")) Seq()
else Seq(compilerPlugin("org.typelevel" % "kind-projector" % "0.13.2" cross CrossVersion.full))
}
val compilerOptions = Seq(
scalacOptions ++= Seq(
"-Ymacro-annotations"
),
scalacOptions -= "-Xfatal-warnings",
scalacOptions += "-Wconf:msg=\\$implicit\\$:s"
)
val Versions = new {
val Cats = "2.7.0"
val CatsEffect = "3.3.14"
}
val Dependencies = new {
private val cats = Seq(
"org.typelevel" %% "cats-core" % Versions.Cats
)
private val catsEffect = Seq(
"org.typelevel" %% "cats-effect" % Versions.CatsEffect
)
val appDependencies =
cats ++ catsEffect
}
lazy val root = (project in file("."))
.settings(
name := "identicon4s",
libraryDependencies ++= Dependencies.appDependencies,
compilerOptions,
compilerPlugins
)