-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.sbt
57 lines (50 loc) · 1.68 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
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
ThisBuild / crossScalaVersions := Seq("2.12.16", "2.13.8", "3.1.3")
val catsV = "2.8.0"
val disciplineMunit = "2.0.0-M3"
val scalacheckV = "1.16.0"
lazy val root = project.in(file("."))
.disablePlugins(MimaPlugin)
.enablePlugins(NoPublishPlugin)
.aggregate(
coreJVM,
coreJS,
coreNative
)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Full)
.in(file("core"))
.settings(
name := "cats-scalacheck",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.scalacheck" %%% "scalacheck" % scalacheckV,
"org.typelevel" %%% "cats-laws" % catsV % Test,
"org.typelevel" %%% "discipline-munit" % disciplineMunit % Test
),
mimaVersionCheckExcludedVersions := {
if (isDotty.value) Set("0.3.0") else Set()
}
)
.nativeSettings(
mimaVersionCheckExcludedVersions += "0.3.1"
)
lazy val coreJVM = core.jvm
lazy val coreJS = core.js
lazy val coreNative = core.native
lazy val site = project.in(file("site"))
.disablePlugins(MimaPlugin)
.enablePlugins(NoPublishPlugin)
.enablePlugins(DavenverseMicrositePlugin)
.settings(
name := "cats-scalacheck-docs",
moduleName := "cats-scalacheck-docs",
mdocVariables := Map(
"VERSION" -> version.value
),
micrositeName := "cats-scalacheck",
micrositeDescription := "Cats Instances for Scalacheck",
micrositeAuthor := "Christopher Davenport",
micrositeGithubOwner := "ChristopherDavenport",
)
.dependsOn(coreJVM)