-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.sbt
85 lines (75 loc) · 2.56 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
82
83
84
85
Global / onChangedBuildSource := ReloadOnSourceChanges
val Scala212 = "2.12.20"
val Scala213 = "2.13.15"
val Scala3 = "3.3.4"
ThisBuild / tlBaseVersion := "0.6"
ThisBuild / startYear := Some(2018)
ThisBuild / crossScalaVersions := Seq(Scala212, Scala3, Scala213)
lazy val root = tlCrossRootProject.aggregate(core, tests, testKit)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/core"))
.settings(commonSettings)
.settings(
name := "cats-time"
)
.platformsSettings(JSPlatform, NativePlatform)(
libraryDependencies += "io.github.cquiroz" %%% "scala-java-time" % "2.4.0"
)
.nativeSettings(commonNativeSettings)
lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/tests"))
.dependsOn(core, testKit)
.settings(commonSettings)
.settings(
name := "cats-time-tests"
)
.enablePlugins(NoPublishPlugin)
lazy val testKit = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("modules/testkit"))
.settings(commonSettings)
.settings(
name := "cats-time-testkit",
libraryDependencies ++= Seq(
"org.scalacheck" %%% "scalacheck" % "1.17.0",
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.8.1"
)
)
.nativeSettings(commonNativeSettings)
lazy val docs = project
.in(file("modules/docs"))
.settings(commonSettings)
.dependsOn(core.jvm)
.enablePlugins(TypelevelSitePlugin)
.enablePlugins(NoPublishPlugin)
.settings(mdocIn := sourceDirectory.value / "main" / "mdoc")
// General Settings
lazy val commonSettings = Seq(
organization := "org.typelevel",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % "2.10.0",
"org.typelevel" %%% "cats-laws" % "2.10.0" % Test,
"org.scalameta" %%% "munit" % "1.0.0-M10" % Test,
"org.typelevel" %%% "discipline-munit" % "2.0.0-M3" % Test,
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.11.0" % Test
)
)
lazy val commonNativeSettings = Seq(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.5.1").toMap
)
// General Settings
inThisBuild(
List(
developers := List(
Developer(
"ChristopherDavenport",
"Christopher Davenport",
url("https://github.com/ChristopherDavenport")
)
),
licenses := List("MIT" -> url("https://opensource.org/licenses/MIT"))
)
)