diff --git a/modules/core/src/main/resources/scalafix-migrations.conf b/modules/core/src/main/resources/scalafix-migrations.conf index c9958d66b..ea27a18cd 100644 --- a/modules/core/src/main/resources/scalafix-migrations.conf +++ b/modules/core/src/main/resources/scalafix-migrations.conf @@ -252,5 +252,18 @@ migrations = [ artifactIds: ["feral-.*"], newVersion: "0.3.0", rewriteRules: ["dependency:V0_3_0Rewrites@org.typelevel:feral-scalafix:0.3.0"] + }, + { + groupId: "dev.zio", + artifactIds: ["zio-kafka"], + newVersion: "2.9.0", + // Note that the replace rule can generate broken code in some cases. + // See https://github.com/scalacenter/scalafix/issues/1168 for details. + rewriteRules: [ + "replace:zio.kafka.serde.Deserializer.mapM/zio.kafka.serde.Deserializer.mapZIO", + "replace:zio.kafka.serde.Serde.inmapM/zio.kafka.serde.Serde.inmapZIO", + "replace:zio.kafka.serde.Serializer.contramapM/zio.kafka.serde.Serializer.contramapZIO" + ], + executionOrder: "post-update" } ]