-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
64 lines (57 loc) · 1.91 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
59
60
61
62
63
64
val Scala213 = "2.13.15"
val Scala3 = "3.3.4"
ThisBuild / tlBaseVersion := "0.2"
ThisBuild / crossScalaVersions := Seq(Scala213, Scala3)
ThisBuild / scalaVersion := Scala213
ThisBuild / developers := List(
Developer("ChristopherDavenport",
"Christopher Davenport",
"chris@christopherdavenport.tech",
url("https://github.com/ChristopherDavenport")
)
)
ThisBuild / tlSitePublishBranch := Some("main")
ThisBuild / homepage := Some(url("https://github.com/http4s/http4s-session"))
ThisBuild / licenses := List("MIT" -> url("http://opensource.org/licenses/MIT"))
ThisBuild / startYear := Some(2024)
val Scala213Cond = s"matrix.scala == '$Scala213'"
val catsV = "2.12.0"
val catsEffectV = "3.5.7"
val fs2V = "3.6.1"
val http4sV = "0.23.30"
val munitCatsEffectV = "2.0.0"
// Projects
lazy val `http4s-session` =
tlCrossRootProject
.aggregate(core)
.enablePlugins(NoPublishPlugin)
lazy val core =
crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("core"))
.settings(
name := "http4s-session",
libraryDependencies ++= Seq(
"org.typelevel" %% "cats-core" % catsV,
"org.typelevel" %% "cats-effect" % catsEffectV,
"org.http4s" %% "http4s-core" % http4sV,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test
),
mimaPreviousArtifacts ~= { _.filterNot(_.revision == "0.1.0") }
)
lazy val examples = project
.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.dependsOn(`http4s-session`.jvm)
.settings(
name := "http4s-session-examples",
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sV,
"org.http4s" %% "http4s-ember-server" % http4sV,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test
)
)
lazy val docs = project
.in(file("site"))
.dependsOn(`http4s-session`.jvm)
.enablePlugins(Http4sOrgSitePlugin)