-
Notifications
You must be signed in to change notification settings - Fork 56
/
build.gradle
61 lines (54 loc) · 2.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
51
52
53
54
55
56
57
58
59
60
61
apply plugin: 'nu.studer.jooq'
ext.moduleName = 'stroom.annotation.impl.db.jooq'
dependencies {
implementation libs.jakarta_annotation_api
implementation libs.jooq
runtimeOnly libs.mysql_connector_java
jooqGenerator libs.mysql_connector_java
}
// Configure jooq plugin to generate code
jooq {
version = versions.jooq
edition = nu.studer.gradle.jooq.JooqEdition.OSS // default (can be omitted)
configurations {
main { // name of the jOOQ configuration
// Disable JOOQ code generation on build
generateSchemaSourceOnCompilation = false
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = 'com.mysql.cj.jdbc.Driver'
url = 'jdbc:mysql://localhost:3307/stroom?useUnicode=yes&characterEncoding=UTF-8'
user = 'stroomuser'
password = 'stroompassword1'
}
generator {
name = 'org.jooq.codegen.JavaGenerator'
database {
name = 'org.jooq.meta.mysql.MySQLDatabase'
inputSchema = 'stroom'
// Add anything you want included in generation below, whitespace ignored
// and comments allowed. Each one is a java regex
includes = 'annotation|annotation_data_link|annotation_entry'
// We don't want to include flyway versioning
excludes = 'annotation_schema_version'
// Specify 'version' for use in optimistic concurrency control
recordVersionFields = 'version'
// Treat some tinyint columns as booleans
//forcedTypes {
//forcedType {
//name = 'BOOLEAN'
//// see https://github.com/jOOQ/jOOQ/issues/9405
//includeTypes = '(?i:tinyint)'
//}
//}
}
target {
packageName = 'stroom.annotation.impl.db.jooq'
directory = 'src/main/java'
}
}
}
}
}
}