-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
58 lines (51 loc) · 1.85 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
ThisBuild / tlBaseVersion := "0.0"
ThisBuild / startYear := Some(2024)
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
tlGitHubDev("ChristopherDavenport", "Christopher Davenport")
)
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / crossScalaVersions := Seq("2.13.14", "3.3.3")
ThisBuild / tlJdkRelease := Some(11)
ThisBuild / tlSonatypeUseLegacyHost := true
ThisBuild / tlSitePublishBranch := Some("main")
// Projects
lazy val shellfish = tlCrossRootProject
.aggregate(core, examples)
lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "shellfish",
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
)
)
lazy val examples = project
.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.dependsOn(core.jvm)
.settings(
name := "shellfish-examples",
Compile / run / fork := true
)
import Site.SiteConfig
lazy val site = project
.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core.jvm)
.settings(
laikaConfig := SiteConfig.laikaConfig
)