51 lines
1.6 KiB
Groovy
51 lines
1.6 KiB
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation 'org.jetbrains:annotations:20.1.0'
|
|
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
|
|
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
jooq {
|
|
version = '3.16.11' // default (can be omitted)
|
|
configurations {
|
|
main { // name of the jOOQ configuration
|
|
generationTool {
|
|
jdbc {
|
|
driver = 'org.mariadb.jdbc.Driver'
|
|
url = 'jdbc:mariadb://localhost:3306/fycd?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Taipei'
|
|
user = 'root'
|
|
password = 'roottoor'
|
|
}
|
|
generator {
|
|
name = 'org.jooq.codegen.DefaultGenerator'
|
|
database {
|
|
name = 'org.jooq.meta.mariadb.MariaDBDatabase'
|
|
inputSchema = 'fycd'
|
|
includes = 'flyway_schema_history'
|
|
}
|
|
generate {
|
|
deprecated = false
|
|
records = true
|
|
immutablePojos = true
|
|
fluentSetters = true
|
|
}
|
|
target {
|
|
packageName = 'jooq'
|
|
directory = 'src/main/java/org/fycd/bigdata/infra' // default (can be omitted)
|
|
}
|
|
strategy.name = 'org.jooq.codegen.DefaultGeneratorStrategy'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |