-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.sbt
47 lines (43 loc) · 1.51 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
ThisBuild / crossScalaVersions := Seq("2.12.20", "3.3.4", "2.13.16")
ThisBuild / tlBaseVersion := "2.4"
ThisBuild / tlVersionIntroduced := Map("3" -> "2.0.2")
ThisBuild / startYear := Some(2014)
ThisBuild / developers := List(
Developer(
id = "rossabaker",
name = "Ross A. Baker",
email = "[email protected]",
url = url("https://github.com/rossabaker")
),
Developer(
id = "ChristopherDavenport",
name = "Christopher Davenport",
email = "[email protected]",
url = url("https://github.com/ChristopherDavenport")
)
)
val JawnVersion = "1.5.1"
val Fs2Version = "3.11.0"
val MunitVersion = "1.0.0"
val MunitCatsEffectVersion = "2.0.0"
lazy val root = tlCrossRootProject.aggregate(`jawn-fs2`)
lazy val `jawn-fs2` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
libraryDependencies ++= Seq(
"org.typelevel" %%% "jawn-parser" % JawnVersion,
"co.fs2" %%% "fs2-core" % Fs2Version,
"co.fs2" %%% "fs2-io" % Fs2Version % Test,
"org.typelevel" %%% "jawn-ast" % JawnVersion % Test,
"org.scalameta" %%% "munit" % MunitVersion % Test,
"org.typelevel" %%% "munit-cats-effect" % MunitCatsEffectVersion % Test
)
)
.jsSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "2.1.0").toMap,
scalaJSLinkerConfig ~= { _.withModuleKind(ModuleKind.CommonJSModule) }
)
.nativeSettings(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "2.2.1").toMap
)