-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
52 lines (42 loc) · 1.76 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
ThisBuild / tlBaseVersion := "0.2" // your current series x.y
ThisBuild / organization := "io.chrisdavenport"
ThisBuild / organizationName := "Christopher Davenport"
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
ThisBuild / tlCiReleaseBranches := Seq("main")
// true by default, set to false to publish to s01.oss.sonatype.org
ThisBuild / tlSonatypeUseLegacyHost := true
val catsV = "2.9.0"
val catsEffectV = "3.4.9"
val munitCatsEffectV = "2.0.0-M3"
ThisBuild / crossScalaVersions := Seq("2.12.15","2.13.8", "3.2.2")
ThisBuild / scalaVersion := "3.2.2"
ThisBuild / versionScheme := Some("early-semver")
lazy val `cats-effect-time` = tlCrossRootProject
.aggregate(core)
lazy val core = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "cats-effect-time",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test,
"org.typelevel" %%% "cats-effect-laws" % catsEffectV % Test,
),
).jsSettings(
scalaJSLinkerConfig ~= (_.withModuleKind(ModuleKind.CommonJSModule))
).platformsSettings(JSPlatform, NativePlatform)(
libraryDependencies ++= Seq(
"io.github.cquiroz" %%% "scala-java-time" % "2.5.0",
),
).nativeSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.2.1").toMap
)
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core.jvm)