-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
49 lines (37 loc) · 1.53 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
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(
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / tlSonatypeUseLegacyHost := true
val Scala213 = "2.13.11"
ThisBuild / crossScalaVersions := Seq("2.12.18", Scala213, "3.3.0")
ThisBuild / scalaVersion := Scala213
ThisBuild / testFrameworks += new TestFramework("munit.Framework")
val catsV = "2.9.0"
val catsEffectV = "3.5.0"
val munitCatsEffectV = "1.0.7"
// Projects
lazy val `natchez-local` = tlCrossRootProject
.aggregate(core)
lazy val core = crossProject(JVMPlatform, JSPlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "natchez-local",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"org.tpolecat" %%% "natchez-core" % "0.3.2",
"io.chrisdavenport" %%% "fiberlocal" % "0.1.1",
"org.typelevel" %%% "munit-cats-effect-3" % munitCatsEffectV % Test,
)
).jsSettings(
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule)},
)
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core.jvm)