Comments (2)
Hey @hovinen
Actually examples are written for Kotlin DSL, so what you are missing is the new
keyword 🙂, also the example is missing the required import. I'll update the examples, but basically it should look like this for Groovy:
import org.jooq.meta.jaxb.ForcedType
plugins {
id "com.revolut.jooq-docker" version "0.3.3"
}
...
tasks {
generateJooqClasses {
customizeGenerator {
database.withForcedTypes(
new ForcedType()
.withUserType("java.time.Instant")
.withConverter("...TimestampConverter")
.withTypes("TIMESTAMP( WITHOUT TIME ZONE)?")
)
}
}
}
from jooq-plugin.
That works, thanks!
It might helpful to add Groovy-based examples to the README, since it's not always obvious how one translates the Kotlin examples.
from jooq-plugin.
Related Issues (20)
- Make flyway and jooq versions configurable. HOT 5
- Add automatically generated classes to a SourceSet. HOT 1
- Plugin is incompatible with Micronaut Gradle plugin HOT 1
- Manual version update of jooq and flyway HOT 3
- NoClassDefFoundError on Windows HOT 4
- ClassNotFoundException: org.jooq.codegen.KotlinGenerator HOT 1
- Allow excluding columns from code generation HOT 1
- Support multiple datasource to generate jooq classes HOT 1
- Support a feature flag to disable generating unchanged files HOT 5
- jooq-plugin is not compatible with new org.jooq:jooq-codegen:3.17.2 HOT 2
- Fails for Postgres as postgres:11.2-alpine is not present in Docker Hub anymore HOT 10
- JNA issue in M1 architecture HOT 2
- generateJooqClasses is unstable when running on MacOS with Rancher Desktop/Colima HOT 5
- Jooq-Docker conflicts with the Flyway plugin HOT 1
- Plugin fails to download docker image from "index.docker.io"
- Update jooq version to 3.18.+
- MySQL 5.7 on Apple Silicon throws "no matching manifest for linux/arm64/v8 in the manifest list entries"
- Plugin gets stuck or fails when applied in same project with Spring Boot plugin 2.3.0 HOT 3
- Sourcesets not correctly set (>0.2.5) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jooq-plugin.