VSCode

The application project can be imported in VSCode as Java project.

From the vscode, open the project folder using File  Open Folder.

Debug

Run the following task to generate a Run launcher:

./gradlew generateLauncher

This will generate .vscode/launch.json. Switch to "Run and Debug" CTRL+SHIFT+D panel and debug with the Run task.

Whenever the sources are changed, re-run following task:

./gradlew classes

This task will re-compile updated classes and the debugger will try to hot reload the changes.

  • repeat ./gradlew generateCode whenever you add/change any domain model definitions

  • repeat ./gradlew generateLauncher if you run gradle clean task or delete build directory