Skip to content

Commit 0841bd5

Browse files
author
ntwigg
committed
Update docs and changelog.
1 parent 36c9cb3 commit 0841bd5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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

6869
We 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+
```

0 commit comments

Comments
 (0)