[英]JOOQ + Gradle: How to define multiple schemas for JOOQ generator?
I want to setup JOOQ generator.我想设置 JOOQ 生成器。 The problem is to set multiple schemas in build.gradle
.问题是在build.gradle
设置多个模式。 I know how to do it with maven:我知道如何用 Maven 做到这一点:
<schemata>
<schema>
<inputSchema>schema1</inputSchema>
</schema>
<schema>
<inputSchema>schema2</inputSchema>
</schema>
</schemata>
I know how to do it with build.gradle.kts:我知道如何使用 build.gradle.kts 做到这一点:
schemata.addAll(
arrayOf(
SchemaMappingType()
.withInputSchema("data"),
SchemaMappingType()
.withInputSchema("dictionaries")
)
)
But I don't know syntax how to do it in gradle.build
on Groovy.但我不知道如何在 Groovy 上的gradle.build
使用语法。
Please, help.请帮忙。
I'm assuming you're using the gradle-jooq-plugin
, so我假设你正在使用gradle-jooq-plugin
,所以
Just write:写就好了:
schemata {
schema {
inputSchema = 'data'
}
schema {
inputSchema = 'dictionaries'
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.