The Gradle jOOQ Plugin automates the code generation process for jOOQ, a popular database access library for Java that creates type-safe query DSLs from database schemas. It wires jOOQ’s code generator into the Gradle build lifecycle, so whenever the schema changes, developers can regenerate matching Java classes directly through a Gradle task. The plugin handles dependencies, classpaths, and configuration options for connecting to different databases. It supports customization of generator options, such as output directories, package names, and which tables or schemas to include. By automating schema-to-code generation, the plugin keeps the application’s data model and database in sync. This reduces runtime errors and increases productivity by making database interactions strongly typed and integrated into the development workflow.
Features
- Adds code generation tasks per jOOQ configuration
- Integrates generated sources into source sets automatically
- Supports incremental build features like task caching and configuration avoidance
- Works with Gradle toolchains and configuration caching
- Simplifies schema-driven type-safe Java query generation
- Continuously maintained with recent releases as of mid‑2025