Google's Dagger 2 coffee maker example in Kotlin
Google’s Dagger 2.13 coffee maker example in Kotlin using Gradle (instead of Maven, like in Google’s example).
Make sure you run Gradle task kaptKotlin
before running directly from your IDE (e.g. IntelliJ IDEA). This task runs Kotlin’s annotation processor and generates stubs that otherwise may not be found by your IDE, resulting in an error.
./gradlew jar # Also runs kaptKotlin before putting it all into a jar
java -jar build/libs/kotfee.jar