JetBrains clarifies its intentions for supporting dependencies in Ktor, enhancing user flexibility and choice.

JetBrains has clarified confusion about its plans to support dependency integration (DI) in Ktor, which it revealed last week in its 2024 roadmap for the Kotlin-based framework. The company is now reassuring users that there will be no requirement to use a DI framework with Ktor .
See also: Nvidia: Expanding cooperation with Chinese electric car manufacturers
In a Kotlin blog post published on March 18, Garth Gilmour, a JetBrains, said that many questions have arisen about DI since the roadmap was published on March 12. Users have wondered how Ktor will change to support DI and integrate with existing DI frameworks. Ktor allows developers to build asynchronous applications using Kotlin.
Gilmour stressed that Ktor will never require the use of a DI framework or include a DI framework as part of its design. “The proposed feature is solely for users who want to combine DI with their services on Ktor,” he said. The company wants to help existing DI frameworks integrate with Ktor as seamlessly as possible. DI will be completely optional, and users will be able to use the native syntax of the DI framework if they prefer.
See also: EQT: Agreed to sell Ottobock stake
“Our goal is to radically simplify the way you use DI in Ktor, without adding any additional complexity,” Gilmour said. The plans call for users to be able to choose which DI framework, if any, they want to use in the Ktor Project Wizard. The goal is to support all DI frameworks. TheKtor Gradle plugin will then automatically find all the components managed by that framework.
Information source: infoworld.com
