Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kafka-clients to 3.7.0 #1191

Merged
merged 4 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sbt.Def

lazy val kafkaVersion = "3.6.1"
lazy val embeddedKafkaVersion = "3.6.1" // Should be the same as kafkaVersion, except for the patch part
lazy val kafkaVersion = "3.7.0"
lazy val embeddedKafkaVersion = "3.7.0" // Should be the same as kafkaVersion, except for the patch part

lazy val kafkaClients = "org.apache.kafka" % "kafka-clients" % kafkaVersion
lazy val scalaCollectionCompat = "org.scala-lang.modules" %% "scala-collection-compat" % "2.11.0"
Expand Down
13 changes: 9 additions & 4 deletions zio-kafka/src/main/scala/zio/kafka/admin/AdminClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -986,12 +986,17 @@ object AdminClient {
override def asJava = JConfigResource.Type.UNKNOWN
}

case object ClientMetrics extends ConfigResourceType {
override def asJava = JConfigResource.Type.CLIENT_METRICS
}

def apply(jcrt: JConfigResource.Type): ConfigResourceType =
jcrt match {
case JConfigResource.Type.BROKER_LOGGER => BrokerLogger
case JConfigResource.Type.BROKER => Broker
case JConfigResource.Type.TOPIC => Topic
case JConfigResource.Type.UNKNOWN => Unknown
case JConfigResource.Type.BROKER_LOGGER => BrokerLogger
case JConfigResource.Type.BROKER => Broker
case JConfigResource.Type.TOPIC => Topic
case JConfigResource.Type.UNKNOWN => Unknown
case JConfigResource.Type.CLIENT_METRICS => ClientMetrics
}
}

Expand Down
Loading