Skip to content

Commit 321f6f4

Browse files
committed
Merge branch 'series/0.24' into series/0.25
2 parents 6f7e79f + 4917959 commit 321f6f4

File tree

5 files changed

+43
-7
lines changed

5 files changed

+43
-7
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name: Continuous Integration
99

1010
on:
1111
pull_request:
12-
branches: ['**', '!update/**']
12+
branches: ['**', '!update/**', '!pr/**']
1313
push:
14-
branches: ['**', '!update/**']
14+
branches: ['**', '!update/**', '!pr/**']
1515
tags: [v*]
1616

1717
env:
@@ -29,10 +29,12 @@ jobs:
2929
fail-fast: false
3030
matrix:
3131
os: [ubuntu-latest]
32-
scala: [2.13.8, 3.1.2]
32+
scala: [2.12.16, 2.13.8, 3.1.2]
3333
java: [temurin@11, temurin@17]
3434
project: [rootJVM]
3535
exclude:
36+
- scala: 2.12.16
37+
java: temurin@17
3638
- scala: 3.1.2
3739
java: temurin@17
3840
runs-on: ${{ matrix.os }}
@@ -187,6 +189,16 @@ jobs:
187189
~/Library/Caches/Coursier/v1
188190
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
189191

192+
- name: Download target directories (2.12.16, rootJVM)
193+
uses: actions/download-artifact@v2
194+
with:
195+
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12.16-rootJVM
196+
197+
- name: Inflate target directories (2.12.16, rootJVM)
198+
run: |
199+
tar xf targets.tar
200+
rm targets.tar
201+
190202
- name: Download target directories (2.13.8, rootJVM)
191203
uses: actions/download-artifact@v2
192204
with:

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# http4s-servlet
2+
3+
Runs http4s apps as Java servlets. Provides components for the [http4s-jetty][http4s-jetty] and [http4s-tomcat][http4s-tomcat]
4+
5+
[http4s-jetty]: https://github.com/http4s/http4s-jetty
6+
7+
## SBT coordinates
8+
9+
```scala
10+
libraryDependencies ++= Seq(
11+
"org.http4s" %% "http4s-servlet" % http4sScalatagsV
12+
)
13+
```
14+
15+
## Compatibility
16+
17+
| http4s-servlet | http4s-core | servlet-api | Scala 2.12 | Scala 2.13 | Scala 3 | Status |
18+
|:---------------|:------------|:------------|------------|------------|---------|:----------|
19+
| 0.23.x | 0.23.x | 3.1 |||| Stable |
20+
| 0.24.x | 0.23.x | 4.0 |||| Milestone |
21+
| 0.25.x | 0.23.x | 5.0 |||| Milestone |
22+
23+
[http4s-jetty]: https://github.com/http4s/http4s-jetty/
24+
[http4s-tomcat]: https://github.com/http4s/http4s-tomcat/

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ThisBuild / developers := List(
1111
ThisBuild / tlSitePublishBranch := Some("main")
1212

1313
val Scala213 = "2.13.8"
14-
ThisBuild / crossScalaVersions := Seq(Scala213, "3.1.2")
14+
ThisBuild / crossScalaVersions := Seq("2.12.16", Scala213, "3.1.2")
1515
ThisBuild / scalaVersion := Scala213 // the default Scala
1616

1717
// Jetty 10+, for testing, requires Java 11.

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "4.2.4")
2-
addSbtPlugin("org.http4s" % "sbt-http4s-org" % "0.14.2")
2+
addSbtPlugin("org.http4s" % "sbt-http4s-org" % "0.14.3")

servlet/src/main/scala/org/http4s/servlet/ServletIo.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ final case class NonBlockingServletIo[F[_]](chunkSize: Int)(implicit F: Async[F]
138138

139139
def unsafeRunAndForget[A](fa: F[A]): Unit =
140140
dispatcher.unsafeRunAndForget(
141-
fa.onError(t => F.delay(logger.error(t)("Error in servlet read listener")))
141+
fa.onError { case t => F.delay(logger.error(t)("Error in servlet read listener")) }
142142
)
143143
})))
144144

@@ -208,7 +208,7 @@ final case class NonBlockingServletIo[F[_]](chunkSize: Int)(implicit F: Async[F]
208208

209209
def unsafeRunAndForget[A](fa: F[A]): Unit =
210210
dispatcher.unsafeRunAndForget(
211-
fa.onError(t => F.delay(logger.error(t)("Error in servlet write listener")))
211+
fa.onError { case t => F.delay(logger.error(t)("Error in servlet write listener")) }
212212
)
213213
}))
214214

0 commit comments

Comments
 (0)