Skip to content

Commit 1120ee5

Browse files
authored
Merge pull request #425 from scala-steward/update/fs2-kafka-1.2.0
Update fs2-kafka to 1.2.0
2 parents 0403831 + eef73b3 commit 1120ee5

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ lazy val fs2Kafka = project
182182
libraryDependencies ++= Seq(
183183
Dependencies.fs2Kafka,
184184
Dependencies.testContainersScalaScalaTest % Test,
185-
Dependencies.testContainersScalaKafka % Test
185+
Dependencies.testContainersScalaKafka % Test,
186+
Dependencies.jacksonDatabind % Test
186187
)
187188
)
188189

fs2-kafka/src/main/scala/com/avast/sst/fs2kafka/Fs2KafkaModule.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object Fs2KafkaModule {
5050

5151
def makeConsumer[F[_]: ConcurrentEffect: ContextShift: Timer, K, V](
5252
settings: ConsumerSettings[F, K, V]
53-
): Resource[F, KafkaConsumer[F, K, V]] = consumerResource[F].using(settings)
53+
): Resource[F, KafkaConsumer[F, K, V]] = KafkaConsumer.resource[F, K, V](settings)
5454

5555
def makeProducer[F[_]: ConcurrentEffect: ContextShift, K: Serializer[F, *], V: Serializer[F, *]](
5656
config: ProducerConfig,
@@ -86,7 +86,7 @@ object Fs2KafkaModule {
8686
}
8787

8888
def makeProducer[F[_]: ConcurrentEffect: ContextShift, K, V](settings: ProducerSettings[F, K, V]): Resource[F, KafkaProducer[F, K, V]] =
89-
producerResource[F].using(settings)
89+
KafkaProducer.resource[F, K, V](settings)
9090

9191
/** Copy of the same class from Scala 2.13 */
9292
implicit private final class ChainingOps[A](private val self: A) extends AnyVal {

project/Dependencies.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object Dependencies {
77
val doobie = "org.tpolecat" %% "doobie-core" % Versions.doobie
88
val doobieHikari = "org.tpolecat" %% "doobie-hikari" % Versions.doobie
99
val flywayCore = "org.flywaydb" % "flyway-core" % "7.5.0"
10-
val fs2Kafka = "com.github.fd4s" %% "fs2-kafka" % "1.1.0"
10+
val fs2Kafka = "com.github.fd4s" %% "fs2-kafka" % "1.2.0"
1111
val grpcNettyShaded = "io.grpc" % "grpc-netty-shaded" % Versions.grpc
1212
val grpcProtobuf = "io.grpc" % "grpc-protobuf" % Versions.grpc
1313
val grpcStub = "io.grpc" % "grpc-stub" % Versions.grpc
@@ -16,6 +16,7 @@ object Dependencies {
1616
val http4sClient = "org.http4s" %% "http4s-client" % Versions.http4s
1717
val http4sDsl = "org.http4s" %% "http4s-dsl" % Versions.http4s
1818
val http4sServer = "org.http4s" %% "http4s-server" % Versions.http4s
19+
val jacksonDatabind = "com.fasterxml.jackson.core" % "jackson-databind" % "2.12.1"
1920
val jsr305 = "com.google.code.findbugs" % "jsr305" % "3.0.2"
2021
val kindProjector = "org.typelevel" % "kind-projector" % "0.11.2" cross CrossVersion.full
2122
val lettuce = "io.lettuce" % "lettuce-core" % "6.0.2.RELEASE"

site/docs/subprojects/fs2-kafka.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ The configuration case classes contain an "escape hatch" into the full world of
3636
This is there to be flexible in case it is needed. Documentation of all the configuration properties is available here:
3737
* [consumer](http://kafka.apache.org/documentation/#consumerconfigs)
3838
* [producer](http://kafka.apache.org/documentation/#producerconfigs)
39+
40+
Beware that there is an optional dependency on `jackson-databind` for the default implementation of `SASL/OAUTHBEARER` in `kafka-clients`.
41+
You need to provide it explicitly: https://kafka.apache.org/documentation/#security_sasl_oauthbearer_clientconfig

0 commit comments

Comments
 (0)