Marc Knaup
12/23/2020, 12:04 AMjava.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`:
implementation(platform("org.eclipse.jetty:jetty-bom:9.4.35.v20201120"))
See also https://github.com/eclipse/jetty.project/issues/4877#issuecomment-749841915