-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
62 lines (53 loc) · 2.15 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
// https://typelevel.org/sbt-typelevel/faq.html#what-is-a-base-version-anyway
ThisBuild / tlBaseVersion := "0.24" // 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.15"
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.4")
ThisBuild / scalaVersion := Scala213 // the default Scala
// Jetty 10+, for testing, requires Java 11.
ThisBuild / githubWorkflowJavaVersions -= JavaSpec.temurin("8")
ThisBuild / tlJdkRelease := Some(8)
ThisBuild / startYear := Some(2013)
lazy val root = tlCrossRootProject.aggregate(servlet, examples)
val asyncHttpClientVersion = "2.12.3"
val jettyVersion = "10.0.24"
val http4sVersion = "0.23.29"
val munitCatsEffectVersion = "2.0.0"
val servletApiVersion = "4.0.1"
lazy val servlet = project
.in(file("servlet"))
.settings(
name := "http4s-servlet",
description := "Portable servlet implementation for http4s servers",
libraryDependencies ++= Seq(
"javax.servlet" % "javax.servlet-api" % servletApiVersion % Provided,
"org.eclipse.jetty" % "jetty-client" % jettyVersion % Test,
"org.eclipse.jetty" % "jetty-server" % jettyVersion % Test,
"org.eclipse.jetty" % "jetty-servlet" % jettyVersion % Test,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"org.http4s" %% "http4s-server" % http4sVersion,
"org.typelevel" %% "munit-cats-effect" % munitCatsEffectVersion % Test,
),
)
lazy val examples = project
.in(file("examples"))
.enablePlugins(NoPublishPlugin)
.enablePlugins(JettyPlugin)
.settings(
name := "http4s-servlet-examples",
description := "Examples for http4s-servlet",
startYear := Some(2013),
fork := true,
Jetty / containerLibs := List("org.eclipse.jetty" % "jetty-runner" % jettyVersion),
libraryDependencies ++= Seq(
"javax.servlet" % "javax.servlet-api" % servletApiVersion % Provided
),
)
.dependsOn(servlet)
lazy val docs = project.in(file("site")).enablePlugins(Http4sOrgSitePlugin)