Recipes
Hot reload
Restart the application when you save a file.
Use Gradle's continuous build: it watches the sources and restarts the application when they change.
kest dev # ./gradlew -t run
kest dev --project orders # in a workspace: ./gradlew -t :orders:runA restart takes as long as a build plus a start (a few seconds), because the wiring is generated at compile time. There is no in-process class reloading: state in memory is lost on every restart, so keep development data in the database or in files.
Run tests the same way: ./gradlew -t test.