Can I run ktor 2 & 3 side by side? I want to bump to Ktor3 in one of our libraries but the rest of the app still be on ktor 2. Highly doubt it but asking anyways
p
Pablichjenkov
10/17/2024, 5:04 AM
Gradle will pick only 1 jar version to include in the final build. Unless you do some fatjar/uberjar trick. Which I think will end up in runtime crashes when the jvm classloader sees duplicate classes path at the time to instantiate the class. I don't think that's possible in the java ecosystem.
Perhaps a long time ago doing some classloader hacks but I think these days the jvm is more secure in that aspect.
e
efemoney
10/17/2024, 2:34 PM
Ah yes of course, I was more interested in knowing if classes were separated by packages & if ktor 3 used a different GAV coordinates like the switch between OkHttp 3 & 3 was, but I was able to find that out. Thanks anyways.
p
Pablichjenkov
10/17/2024, 3:53 PM
Ah I see, that would be great, the package separation. 👍