-
Notifications
You must be signed in to change notification settings - Fork 84
/
jooq.gradle
61 lines (54 loc) · 1.58 KB
/
jooq.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import nu.studer.gradle.jooq.JooqEdition
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'nu.studer:gradle-jooq-plugin:9.0'
}
}
apply plugin: nu.studer.gradle.jooq.JooqPlugin
repositories {
mavenCentral()
}
dependencies {
jooqGenerator 'com.h2database:h2:2.1.214'
}
jooq {
configurations {
main {
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = 'org.h2.Driver'
url = 'jdbc:h2:~/test;AUTO_SERVER=TRUE'
user = 'sa'
password = ''
properties {
property {
key = 'PAGE_SIZE'
value = 2048
}
}
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
database {
name = 'org.jooq.meta.h2.H2Database'
}
generate {
deprecated = false
records = false
immutablePojos = false
fluentSetters = false
}
target {
packageName = 'nu.studer.sample'
directory = 'src/generated/jooq'
}
strategy.name = "org.jooq.codegen.DefaultGeneratorStrategy"
}
}
}
}
}