jOOQ is an extremely powerful tool that puts your database first:
jOOQ generates Java code from your database and lets you build type safe SQL qu...
For further actions, you may consider blocking this person and/or reporting abuse
Sadly, the jooq plugin isn't compatible with jooq 3.13.x.
Version 3.13.x is the default version in Spring 2.3, so new projects, for now, can't use this.
I've made a PR about that, waiting for approval: github.com/rohanprabhu/kotlin-dsl-...
I'm using it with jOOQ 3.13.1 without any issue
The PR has been merged, so now this is working.
I see that, but it was working for me before with spring boot 2.2
Yeah, but spring boot 2.2 use the same jooq version used in the plugin by default.
FWIW, the way I do the jOOQ codegen in my projects is to "just" use a
JavaExectask and put the config in an XML file:(note: we run the codegen against a Postgresql database, so we do it manually and commit the generated files, hence the
jooqOutputDirbeing insrc/main, and running Spotless as a finalizer task to reformat the code; also we only use SQL migrations, hence theinputsonly listingsrc/main/resources/db/migration)Interesting blog post. Thanks for writing it up.
The plugin used in this post is a "weak" fork of the original plugin. The original plugin is richer in functionality, leverages recent Gradle features much more deeply, and is stronger in implementation and internal testing:
github.com/etiennestuder/gradle-jo...
Since version 5.x, the gradle-jooq-plugin has support for Kotlin:
github.com/etiennestuder/gradle-jo...
There is also a small example in its repo on how to combine it with Flyway:
github.com/etiennestuder/gradle-jo...
There is also a small example in its repo on how to combine it with Spring Boot:
github.com/etiennestuder/gradle-jo...
I'm writing this just for completion, not to critize.