-
Notifications
You must be signed in to change notification settings - Fork 84
/
build.gradle
50 lines (45 loc) · 1.34 KB
/
build.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
plugins {
id 'nu.studer.jooq' version '9.0'
id 'java'
}
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 = ''
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
database {
name = 'org.jooq.meta.h2.H2Database'
includes = '.*'
excludes = ''
}
target {
packageName = 'nu.studer.sample'
}
}
}
}
}
}
tasks.named('generateJooq').configure {
// normalization is only meaningful when the task participates in incremental builds (and build caching)
allInputsDeclared = true
// normalize any parts of the jOOQ config to ensure relocatability (if task has been made cacheable)
generationToolNormalization = { org.jooq.meta.jaxb.Configuration c ->
c.jdbc.user = ''
c.jdbc.password = ''
}
}