-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
22 lines (19 loc) · 794 Bytes
/
build.sbt
File metadata and controls
22 lines (19 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name := "mapk"
version := "1.2.0"
scalaVersion := "2.12.14"
crossScalaVersions := List("2.12.14", "2.13.6", "3.0.0")
libraryDependencies += "org.typelevel" %% "cats-core" % "2.6.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.9" % "test"
libraryDependencies ++= (scalaBinaryVersion.value match {
case "2.12" | "2.13" => compilerPlugin("org.typelevel" % "kind-projector" % "0.13.0" cross CrossVersion.full) :: Nil
case _ => Nil
})
scalacOptions := List("-deprecation", "-unchecked", "-feature", "-language:higherKinds")
scalacOptions ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 12)) => Seq("-Ypartial-unification", "-Xsource:3")
case Some((2, 13)) => Seq("-Xsource:3")
case Some((3, _)) => Seq("-Ykind-projector")
case _ => Nil
}
}