-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
57 lines (48 loc) · 1.95 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
val Scala212 = "2.12.20"
val Scala213 = "2.13.15"
val Scala3 = "3.3.4"
ThisBuild / tlBaseVersion := "3.6"
ThisBuild / crossScalaVersions := Seq(Scala212, Scala3, Scala213)
ThisBuild / tlVersionIntroduced := Map("3" -> "3.0.3")
ThisBuild / tlMimaPreviousVersions ~= (_.filterNot(_ == "3.2.0"))
ThisBuild / licenses := List("MIT" -> url("http://opensource.org/licenses/MIT"))
ThisBuild / startYear := Some(2021)
ThisBuild / tlSiteApiUrl := Some(url("https://www.javadoc.io/doc/org.typelevel/vault_2.13/latest/org/typelevel/vault/"))
ThisBuild / developers := List(
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
val JDK8 = JavaSpec.temurin("8")
val JDK17 = JavaSpec.temurin("17")
ThisBuild / githubWorkflowJavaVersions := Seq(JDK8, JDK17)
lazy val root = tlCrossRootProject.aggregate(core)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "vault",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"org.typelevel" %%% "cats-laws" % catsV % Test,
"org.typelevel" %%% "discipline-munit" % disciplineMunitV % Test,
"org.typelevel" %%% "scalacheck-effect-munit" % scalacheckEffectV % Test,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test
)
)
.nativeSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "3.2.2").toMap
)
lazy val docs = project
.in(file("site"))
.settings(tlFatalWarnings := false)
.dependsOn(core.jvm)
.enablePlugins(TypelevelSitePlugin)
val catsV = "2.11.0"
val catsEffectV = "3.5.5"
val disciplineMunitV = "2.0.0-M3"
val scalacheckEffectV = "2.0.0-M2"
val munitCatsEffectV = "2.0.0"
val kindProjectorV = "0.13.3"
// Scalafmt
addCommandAlias("fmt", "; Compile / scalafmt; Test / scalafmt; scalafmtSbt")
addCommandAlias("fmtCheck", "; Compile / scalafmtCheck; Test / scalafmtCheck; scalafmtSbtCheck")