At the time of writing, the Gradle-Jooq-Plugin doesn’t offer a good way to use Testcontainers for generation. The fundamental issue is, that the JDBC-URL - or more specifically the port - can’t be read from TestContainers unless it’s started. Thus it can’t be used in the Plugin-configuration and setting it later is hardly possible.
So this example uses the plain Jooq-Generator classes.