-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
74 lines (59 loc) · 2.3 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
65
66
67
68
69
70
71
72
73
74
ThisBuild / tlBaseVersion := "0.5" // your current series x.y
ThisBuild / organization := "io.chrisdavenport"
ThisBuild / organizationName := "Christopher Davenport"
ThisBuild / licenses := Seq(License.MIT)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("christopherdavenport", "Christopher Davenport")
)
ThisBuild / tlCiReleaseBranches := Seq("main")
// true by default, set to false to publish to s01.oss.sonatype.org
ThisBuild / tlSonatypeUseLegacyHost := true
val catsV = "2.9.0"
val catsEffectV = "3.4.8"
val fs2V = "3.6.1"
val circuitV = "0.5.1"
val http4sV = "0.23.18"
ThisBuild / crossScalaVersions := Seq("2.12.17", "2.13.10", "3.2.2")
ThisBuild / scalaVersion := "3.2.2"
ThisBuild / testFrameworks += new TestFramework("munit.Framework")
lazy val `circuit-http4s` = tlCrossRootProject
.aggregate(server, client)
lazy val server = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("server"))
.settings(commonSettings)
.settings(
name := "circuit-http4s-server",
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-core" % http4sV % Test
)
).platformsSettings(JSPlatform, NativePlatform)(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.4.1").toMap
)
lazy val client = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.crossType(CrossType.Pure)
.in(file("client"))
.settings(commonSettings)
.settings(
name := "circuit-http4s-client",
libraryDependencies ++= Seq(
"org.http4s" %%% "http4s-client" % http4sV
)
).platformsSettings(JSPlatform, NativePlatform)(
tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "0.4.1").toMap
)
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(server.jvm, client.jvm)
// General Settings
lazy val commonSettings = Seq(
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-core" % catsV,
"org.typelevel" %%% "cats-effect" % catsEffectV,
"co.fs2" %%% "fs2-io" % fs2V,
"io.chrisdavenport" %%% "circuit" % circuitV,
"org.http4s" %%% "http4s-dsl" % http4sV % Test,
"org.typelevel" %%% "munit-cats-effect" % "2.0.0-M3" % Test,
)
)