-
Notifications
You must be signed in to change notification settings - Fork 80
/
build.gradle.kts
71 lines (66 loc) · 2.21 KB
/
build.gradle.kts
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
62
63
64
65
66
67
68
69
70
71
import nu.studer.gradle.jooq.JooqEdition
import org.jooq.meta.jaxb.Logging
import org.jooq.meta.jaxb.Property
import org.jooq.meta.jaxb.ForcedType
plugins {
id("nu.studer.jooq") version "9.0"
id("java")
}
repositories {
mavenCentral()
}
dependencies {
jooqGenerator("com.h2database:h2:2.1.214")
}
jooq {
version.set("3.19.15")
edition.set(JooqEdition.OSS)
configurations {
create("main") {
jooqConfiguration.apply {
logging = Logging.WARN
jdbc.apply {
driver = "org.h2.Driver"
url = "jdbc:h2:~/test;AUTO_SERVER=TRUE"
user = "sa"
password = ""
properties = listOf(
Property().apply {
key = "PAGE_SIZE"
value = "2048"
}
)
}
generator.apply {
name = "org.jooq.codegen.DefaultGenerator"
database.apply {
name = "org.jooq.meta.h2.H2Database"
forcedTypes = listOf(
ForcedType().apply {
name = "varchar"
includeExpression = ".*"
includeTypes = "JSONB?"
},
ForcedType().apply {
name = "varchar"
includeExpression = ".*"
includeTypes = "INET"
}
)
}
generate.apply {
isDeprecated = false
isRecords = false
isImmutablePojos = false
isFluentSetters = false
}
target.apply {
packageName = "nu.studer.sample"
directory = "src/generated/jooq"
}
strategy.name = "org.jooq.codegen.DefaultGeneratorStrategy"
}
}
}
}
}