An open API service indexing awesome lists of open source software.

https://github.com/erikhuizinga/kotfee

Google's Dagger 2 coffee maker example in Kotlin
https://github.com/erikhuizinga/kotfee

coffee dagger-2 dagger2 kotlin

Last synced: about 1 year ago
JSON representation

Google's Dagger 2 coffee maker example in Kotlin

Awesome Lists containing this project

README

          

# kotfee ☕️

[Google's Dagger 2.13 coffee maker example](https://github.com/google/dagger/tree/dagger-2.13/examples/simple) in Kotlin using Gradle (instead of Maven, like in Google's example).

# How-to

## Run in IDE

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.

## Run from command line

```bash
./gradlew jar # Also runs kaptKotlin before putting it all into a jar
java -jar build/libs/kotfee.jar
```