forked from typelevel/GatOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
70 lines (62 loc) · 2.22 KB
/
build.sbt
File metadata and controls
70 lines (62 loc) · 2.22 KB
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
import laika.sbt.LaikaConfig
import laika.config.*
ThisBuild / tlBaseVersion := "0.0"
ThisBuild / startYear := Some(2024)
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / tlJdkRelease := Some(11)
ThisBuild / developers := List(
tlGitHubDev("ChristopherDavenport", "Christopher Davenport"),
tlGitHubDev("TonioGela", "Antonio Gelameris"),
tlGitHubDev("Hombre-x", "Gabriel Santana Paredes")
)
ThisBuild / tlSitePublishBranch := Some("main")
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / crossScalaVersions := Seq("2.13.15", "3.3.4")
lazy val root = tlCrossRootProject.aggregate(catscript, examples)
lazy val catscript = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("catscript"))
.settings(
name := "catscript",
libraryDependencies ++= List(
"org.typelevel" %% "cats-core" % "2.12.0",
"org.typelevel" %% "alleycats-core" % "2.12.0",
"org.typelevel" %% "cats-effect" % "3.5.4",
"co.fs2" %% "fs2-core" % "3.10.2",
"co.fs2" %% "fs2-io" % "3.10.2",
"co.fs2" %% "fs2-scodec" % "3.10.2",
"org.scodec" %% "scodec-bits" % "1.2.0",
"org.scodec" %% "scodec-core" % (if (scalaVersion.value.startsWith("2."))
"1.11.10"
else "2.3.0"),
// Testing
"com.disneystreaming" %% "weaver-cats" % "0.8.4" % Test,
"com.disneystreaming" %% "weaver-scalacheck" % "0.8.4" % Test
),
mimaPreviousArtifacts := Set()
)
lazy val examples = project
.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.dependsOn(catscript.jvm)
.settings(
name := "catscript-examples",
Compile / run / fork := true
)
lazy val docs = project
.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(catscript.jvm)
.settings(
laikaConfig := LaikaConfig.defaults
.withConfigValue(
Selections(
SelectionConfig(
"api-style",
ChoiceConfig("syntax", "Syntax"),
ChoiceConfig("static", "Static"),
ChoiceConfig("fs2", "Fs2")
)
)
)
)