-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
56 lines (48 loc) · 1.8 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
ThisBuild / tlBaseVersion := "0.25" // your current series x.y
ThisBuild / licenses := Seq(License.Apache2)
ThisBuild / developers := List(
// your GitHub handle and name
tlGitHubDev("rossabaker", "Ross A. Baker")
)
// publish website from this branch
ThisBuild / tlSitePublishBranch := Some("main")
val Scala213 = "2.13.10"
ThisBuild / crossScalaVersions := Seq(Scala213, "2.12.17", "3.2.0")
ThisBuild / scalaVersion := Scala213 // the default Scala
val asyncHttpClientVersion = "2.12.3"
val http4sVersion = "0.23.18"
val http4sServletVersion = "0.25.0-M1"
val munitCatsEffectVersion = "1.0.7"
val servletApiVersion = "5.0.0"
val tomcatVersion = "10.0.27"
lazy val root = project
.in(file("."))
.enablePlugins(NoPublishPlugin)
.aggregate(tomcatServer, examples)
lazy val tomcatServer = project
.in(file("tomcat-server"))
.settings(
name := "http4s-tomcat-server",
description := "Tomcat implementation for http4s servers",
startYear := Some(2014),
libraryDependencies ++= Seq(
"jakarta.servlet" % "jakarta.servlet-api" % servletApiVersion % Provided,
"org.apache.tomcat" % "tomcat-catalina" % tomcatVersion,
"org.apache.tomcat" % "tomcat-coyote" % tomcatVersion,
"org.apache.tomcat" % "tomcat-util-scan" % tomcatVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.http4s" %% "http4s-servlet" % http4sServletVersion,
"org.typelevel" %% "munit-cats-effect-3" % munitCatsEffectVersion % Test,
),
)
lazy val examples = project
.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.settings(
name := "http4s-tomcat-examples",
description := "Example of http4s server on Tomcat",
startYear := Some(2014),
fork := true,
)
.dependsOn(tomcatServer)
lazy val docs = project.in(file("site")).enablePlugins(TypelevelSitePlugin)