Skip to content
JDesk
Getting started

Project structure

A file-by-file tour of the project that create-jdesk-app generates.

The default basic template is a single Gradle module.

my-app/
  build.gradle.kts               # plugin, deps, jdesk config
  src/main/java/.../Main.java     # entry point
  src/main/java/.../GreetingService.java
  src/main/resources/jdesk-capabilities.json
  ui/                            # the web frontend
  • Main.java builds a JDeskApplication with the command registry, capabilities, and a window.
  • GreetingService.java is a command service turned into a registry at compile time.
  • jdesk-capabilities.json grants capabilities per window (deny-by-default).

The structured template splits into domain / application / infrastructure / desktop modules.