kotlin-dsl-gradle-jooq-plugin icon indicating copy to clipboard operation
kotlin-dsl-gradle-jooq-plugin copied to clipboard

Weird way to specify `jooqCodegenConfiguration`

Open rohanprabhu opened this issue 5 years ago • 1 comments

Current way to specify a jooq configuration is something like:

configuration("", ...) {
    configuration = jooqCodegenConfiguration {
        ....
    }
}

Whereas all other places of configuration looks like:

jdbc {

}

generator {

}

The first example looks really bad and completely out of sync with how everything else is written.

rohanprabhu avatar Jan 28 '20 14:01 rohanprabhu

Does it mean the following block should be totally removed?

configuration = jooqCodegenConfiguration {
        ....
}

And we should be able to use something like this:

configuration("", ...) {
    jdbc {
        ....
    }
    
    generator {
        ...
    }
}

davinkevin avatar Jun 18 '20 19:06 davinkevin