Based on Dagger's example
di:coffee-maker:common
: Kotlin MPP sharable library with Kodein-DI implementation
./gradlew :di:coffee-maker:common:build
di:coffee-maker:android
: Android application with Kodein-DI implementation
./gradlew :di:coffee-maker:android:assembleDebug
Or run it through your IDE
di:coffee-maker:console
: Sample for native CLI with Kodein-DI implementation
Linux
./gradlew :di:coffee-maker:console:runReleaseExecutableLinuxX64
OSX
./gradlew :di:coffee-maker:console:runReleaseExecutableMacosX64
Windows
./gradlew :di:coffee-maker:console:runReleaseExecutableMingwX64
di:coffee-maker:js
: Sample for JavaScript browser application with Kodein-DI implementation
./gradlew :di:coffee-maker:js:browserRun
di:coffee-maker:jvm
: Sample for Java Jar application with Kodein-DI implementation
./gradlew :di:coffee-maker:jvm:jar && java -jar di/coffee-maker/jvm/build/libs/jvm.jar
di:standalone:ktor
: Sample for Ktor server application with Kodein-DI implementation
./gradlew :di:standalone:ktor:run
And navigate to http://localhost:8000/ to see the sample home page.
NB: The TornadoFX project is made to be run with a JDK8, as superior JDKs doesn't have JavaFX anymore
di:standalone:tornadofx
: Sample for TornadoFX integration of Kodein-DI
./gradlew :di:standalone:tornadofx:run