In case you get the following error when upgrading...
# ktor
m
In case you get the following error when upgrading to Ktor 1.5.0 on JVM:
Copy code
java.lang.IncompatibleClassChangeError: Found interface org.eclipse.jetty.http.pathmap.PathSpec, but class was expected
It’s caused by a binary-incompatible change in
org.eclipse.jetty:jetty-http
introduced in
9.4.30
. Some Ktor 1.5.0 modules have that dependency and increased their version requirement. If other libraries in your project depend on
jetty
libraries
<= 9.4.29
you may get that error. Workaround is to pin all
jetty
dependencies to the same version using their `bom`:
Copy code
implementation(platform("org.eclipse.jetty:jetty-bom:9.4.35.v20201120"))
See also https://github.com/eclipse/jetty.project/issues/4877#issuecomment-749841915