Simple stupid Ktor project shows that it's not needed to import any dependency injection container/library to have DI.
Dependency container resides here
Core domain logic resides in domain
module. In adapters
module ports implementations are located.
- Kotlin.
- Ktor framework.
- Ports&Adapters (Hexagonal) architecture https://alistair.cockburn.us/hexagonal-architecture/.
- No Dependency Inversion library.
- Simple test setup.
- DDD.
./gradlew run