File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 44### Added
55- ` webtools.Env.isHerokuBuild() ` and ` isGitHubAction() `
66- ` com.diffplug.webtools.jte ` plugin ([ #10 ] ( https://github.com/diffplug/webtools/pull/10 ) )
7+ - ` com.diffplug.webtools.flywayjooq ` plugin ([ #11 ] ( https://github.com/diffplug/webtools/pull/11 ) )
78
89## [ 1.2.6] - 2025-08-22
910### Fixed
Original file line number Diff line number Diff line change 33- [ node] ( #node ) - hassle-free ` npm install ` and ` npm run blah `
44- [ static server] ( #static-server ) - a simple static file server
55- [ jte] ( #jte ) - creates idiomatic Kotlin model classes for ` jte ` templates (strict nullability & idiomatic collections and generics)
6+ - [ flywayjooq] ( #flywayjooq ) - coordinates docker, flyway, and jOOQ for fast testing
67
78## Node
89
@@ -66,3 +67,24 @@ class header(
6667```
6768
6869We also translate Java collections and generics to their Kotlin equivalents. See ` JteRenderer.convertJavaToKotlin ` for details.
70+
71+ ### flywayjooq
72+
73+ Compile tasks just need to depend on the ` jooq ` task. It will keep a live database running to test against.
74+
75+ ``` gradle
76+ flywayJooq {
77+ // starts this docker container which needs to have postgres
78+ setup.dockerComposeFile = file('src/test/resources/docker-compose.yml')
79+ // writes out connection data to this file
80+ setup.dockerConnectionParams = file('build/pgConnection.properties')
81+ // migrates a template database to this
82+ setup.flywayMigrations = file('src/main/resources/db/migration')
83+ // dumps the final schema out to this
84+ setup.flywaySchemaDump = file('src/test/resources/schema.sql')
85+ // sets up jOOQ
86+ configuration {
87+ // jOOQ setup same as the official jOOQ plugin
88+ }
89+ }
90+ ```
You can’t perform that action at this time.
0 commit comments