-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (55 loc) · 1.87 KB
/
Copy pathbuild.gradle
File metadata and controls
59 lines (55 loc) · 1.87 KB
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
apply plugin: 'nu.studer.jooq'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// implementation 'com.multi:tenancy:0.0.2-SNAPSHOT'
implementation project(':multi-tenancy-library')
jooqGenerator 'org.postgresql:postgresql:42.5.0'
runtimeOnly 'org.postgresql:postgresql'
implementation 'org.springframework.boot:spring-boot-starter-jooq'
implementation 'org.springframework.boot:spring-boot-starter-web'
}
jooq {
// use jOOQ version defined in Spring Boot
version = dependencyManagement.importedProperties['jooq.version']
// edition = JooqEdition.OSS
configurations {
main {
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://127.0.0.1:5432/postgres'
user = 'postgres'
password = '123456'
properties {
property {
key = 'PAGE_SIZE'
value = 2048
}
}
}
generator {
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
includes = '.*'
excludes = ''
}
generate {
deprecated = false
records = true
immutablePojos = true
fluentSetters = true
}
target {
packageName = 'com.khch.jooq'
}
strategy.name = "org.jooq.codegen.DefaultGeneratorStrategy"
}
}
}
}
}