Available in versions: Dev (3.21) | Latest (3.20) | 3.19

This is experimental functionality, and as such subject to change. Use at your own risk!

Compiler dependency

Supported by ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

The generation output goes to the main source set, if that source set is available. In order for the Java, Kotlin, or Scala compiler to be able to compile generation output, the dependency must be declared as follows:

Kotlin
Groovy
 jooq { // ... } // When using Java tasks.named("compileJava") { dependsOn(tasks.named("jooqCodegen")) } // When using Kotlin tasks.named("compileKotlin") { dependsOn(tasks.named("jooqCodegen")) } // When using Scala tasks.named("compileScala") { dependsOn(tasks.named("jooqCodegen")) } 

See the configuration XSD or the manual's various sections about code generation for more details.

 jooq { // ... } // When using Java tasks.named("compileJava") { dependsOn(tasks.named("jooqCodegen")) } // When using Kotlin tasks.named("compileKotlin") { dependsOn(tasks.named("jooqCodegen")) } // When using Scala tasks.named("compileScala") { dependsOn(tasks.named("jooqCodegen")) } 

See the configuration XSD or the manual's various sections about code generation for more details.

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo