Preparing Apache Kafka for Scala 3
summary
Attempt to add Scala 3 support to Apache Kafka core (mostly Scala 2.12/2.13) uses Gradle and uncovers real, concrete problems not just syntax differences: build required Gradle 7.3 added Scala 3 support, compilation hits a SAM overload resolution regression forcing awkward type annotations, Scala 3 initially drops Java-accessible companion statics then companion static forwarding restored in 3.1.0, several bugs cause runtime failures until fixed in later 3.1.x releases including boxing and varargs fixes in 3.1.1 and a by-name type erasure fix in 3.1.2 RC; recommends adding mixed Java/Scala projects to the community build.
AI-written summary · about
