Comments (5)
Note that in vanilla jOOQ, you can configure all of these things, see:
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/codegen-config-generate/codegen-generate-annotations/
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-advanced/codegen-config-generate/codegen-generate-serial-version-uid/
from jooq-plugin.
I may be missing something.
I pinned jooq 3.16.6
in gradle.
Im unable to find any feature to enable generating serialVersionUID as hash
for example or as constant
on the org.jooq.meta.jaxb.Generate
object.
from jooq-plugin.
I'm not affiliated with this plugin, just thought this might help. From the readme, I'd expect the generate
content to be available via customizeGenerator
?
See: https://github.com/revolut-engineering/jooq-plugin/blob/master/README.md
from jooq-plugin.
Yes, this is how I had a reference to the Generate
object
tasks {
generateJooqClasses {
customizeGenerator {
generate.examplePropertyName = exampleValue
}
}
}
to close the loop on this one, I was able to set the generatedSerialVersionUID
via the withGroovyBuilder
.
This is a decent work around.
I wasn't aware of this Groovy builder. But it seems like the Kotlin object doesn't expose certain properties? if that is the case , I feel like there's room for improvement (at least to enhance discoverability of these features/props).
tasks {
generateJooqClasses {
customizeGenerator {
generate.examplePropertyName = exampleValue
generate.withGroovyBuilder {
setProperty("generatedSerialVersionUID", "HASH")
}
}
}
}
Thank you! I appreciate your input and time.
from jooq-plugin.
You can do it like that:
tasks {
generateJooqClasses {
customizeGenerator {
generate.generatedSerialVersionUID = org.jooq.meta.jaxb.GeneratedSerialVersionUID.HASH
}
}
}
Btw, this plugin seems to be abandoned, so I forked it and published it under a new group. It's available here: https://plugins.gradle.org/plugin/dev.monosoul.jooq-docker ( https://github.com/monosoul/jooq-gradle-plugin )
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
- 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"
- ForcedType not found in Groovy dialect HOT 2
- 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.