-
Notifications
You must be signed in to change notification settings - Fork 104
feat: automate JOOQ code generation in SBT build process #3746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR integrates JOOQ code generation into the SBT build system to automate database access object generation. The implementation adds a custom SBT task that generates JOOQ classes from database schema before compilation.
- Adds JOOQ-related dependencies to the build system for code generation
- Implements a custom SBT task that reads JOOQ configuration and database settings to generate code
- Integrates the generation task into the compilation pipeline using SBT source generators
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| core/project/plugins.sbt | Adds JOOQ codegen, Typesafe config, and PostgreSQL driver dependencies |
| core/dao/build.sbt | Implements JOOQ code generation task and integrates it into SBT compilation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Since the JOOQ code generator was merged into the sbt compiler in PR #3746, there’s no longer a need for a separate step for JOOQ code generator in CI.
Description:
Integrate JOOQ code generation into SBT build system
Changes:
Add JOOQ generation task using SBT source generators that run before compilation
Add JOOQ dependencies required for build time code generation