How can I use io.ktor.plugin to manage Ktor librar...
# ktor
r
How can I use io.ktor.plugin to manage Ktor libraries if the module is not supposed to be an application? In other words, I have an infrastructure module that requires Ktor Client dependencies, so I figured I'd use io.ktor.plugin to manage the versions in a centralized way, but it applies application plugin so the build fails requiring me to specify the main class (which is already specified in the module with ktor server libraries)
a
You can use Ktor BOM to control the Ktor dependency versions. For example:
Copy code
implementation(platform("io.ktor:ktor-bom:2.3.12"))
implementation("io.ktor:ktor-client-core")
r
Interesting. If I add this to buildSrc/ then do I still need the io.ktor.plugin anywhere?
a
I think you don't need the plugin then.
❤️ 1
r
Thanks Aleksei, I'll try this out