
foojay · 9 min readBackend & APIs
Put the structure of your Spring Boot service in a YAML model: architecture changes, AI coding and BI from one source
A Gradle plugin reads a YAML domain model and generates a complete Spring Boot service, letting developers switch architectures, languages, and databases by changing configuration instead of rewriting code. The deterministic generation also makes AI‑assisted coding safer by treating the model as the single source of truth, and hand‑written edits survive regeneration through three‑way merges.
- Switching between layered, hexagonal, or DDD architectures requires only a Gradle setting change, not code rewrites
- Changing the target language (Java↔Kotlin) or persistence (JPA, MyBatis, MongoDB) is handled by the plugin without manual modifications
- Hand‑edited files are merged automatically, preserving custom logic while keeping generated code deterministic