revolut-engineering / jooq-plugin

Plugin for generating jOOQ classes using dockerized databases
Apache License 2.0
72 stars 29 forks source link

Add automatically generated classes to a SourceSet. #11

Closed victorlopezsalazar closed 4 years ago

victorlopezsalazar commented 4 years ago

Maybe I'm missing something but, after the generation the following block has to be included in order to use the jooq generated classes:

sourceSets {
    main.java.srcDirs += project.layout.buildDirectory.dir("generated-jooq")

}

It might be good if the plugin allowed an option to specify the sourceSet where those classes should be included, setting main.java as a default if the java plugin is included as well.

victorlopezsalazar commented 4 years ago

Ok, I see this is a duplicate of https://github.com/revolut-engineering/jooq-plugin/issues/9. Closing it.