bombinating/jooq-gradle-plugin

Pass jOOQ related properties to the codegen process

Closed this issue · 3 comments

The jOOQ codegen related env vars start with "jooq.codegen".

For a task with name , look for env vars that start with x.jooq.codegen.* and pass the variables into the task as jooq.codegen.*

In order to not pass in the jdbc portions of the configuration, there has to be a way to suppress the marshalling errors.

Here's the relevant manual page: https://www.jooq.org/doc/3.12/manual-single-page/#codegen-system-properties.

Looking in the code, it appears that a non-null value for the env var jooq.codegen.jdbc.url triggers the code to look at the other jooq.codegen.* vars.