forked from typelevel/cats-mtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
81 lines (69 loc) · 2.44 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ThisBuild / tlBaseVersion := "1.3"
ThisBuild / startYear := Some(2021)
ThisBuild / developers := List(
tlGitHubDev("SystemFw", "Fabio Labella"),
tlGitHubDev("andyscott", "Andy Scott"),
tlGitHubDev("kailuowang", "Kailuo Wang"),
tlGitHubDev("djspiewak", "Daniel Spiewak"),
tlGitHubDev("LukaJCB", "Luka Jacobowitz"),
tlGitHubDev("edmundnoble", "Edmund Noble")
)
val Scala213 = "2.13.8"
ThisBuild / crossScalaVersions := Seq("3.1.3", "2.12.16", Scala213)
ThisBuild / tlVersionIntroduced := Map("3" -> "1.2.1")
lazy val commonJvmSettings = Seq(
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oDF")
)
lazy val commonJsSettings = Seq(
doctestGenTests := Seq.empty
)
lazy val commonNativeSettings = Seq(
doctestGenTests := Seq.empty,
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "1.3.0").toMap
)
val CatsVersion = "2.8.0"
lazy val root = tlCrossRootProject.aggregate(core, laws, tests)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.settings(name := "cats-mtl")
.settings(
libraryDependencies += "org.typelevel" %%% "cats-core" % CatsVersion
)
.jsSettings(commonJsSettings)
.jvmSettings(commonJvmSettings)
.nativeSettings(commonNativeSettings)
lazy val laws = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.dependsOn(core)
.settings(name := "cats-mtl-laws")
.settings(libraryDependencies += "org.typelevel" %%% "cats-laws" % CatsVersion)
.jsSettings(commonJsSettings)
.jvmSettings(commonJvmSettings)
.nativeSettings(commonNativeSettings)
lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.dependsOn(core, laws)
.enablePlugins(NoPublishPlugin)
.settings(name := "cats-mtl-tests")
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-testkit" % CatsVersion,
"org.scalameta" %%% "munit" % "1.0.0-M6",
"org.typelevel" %%% "discipline-munit" % "2.0.0-M3"))
.jsSettings(commonJsSettings)
.jvmSettings(commonJvmSettings)
.nativeSettings(commonNativeSettings)
lazy val unidocs = project
.in(file("unidocs"))
.enablePlugins(TypelevelUnidocPlugin)
.settings(
name := "cats-mtl-docs",
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(core.jvm, laws.jvm)
)
lazy val docs = project
.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.settings(
tlFatalWarnings := false,
laikaConfig ~= (_.withRawContent)
)
.dependsOn(core.jvm)