Skip to content

Commit

Permalink
Add scalafix for zio-kafka 2.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvanoosten authored and mzuehlke committed Nov 10, 2024
1 parent 3ad9135 commit c1d4b6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/core/src/main/resources/scalafix-migrations.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]

0 comments on commit c1d4b6f

Please sign in to comment.