Jooq codegen 不生成 类
Jooq codegen doesn't generate classes
Jooq 不生成 类。我在 postgresql 42.2.24 中使用 gradle 插件 https://github.com/etiennestuder/gradle-jooq-plugin。我的问题是什么?这是我的 build.gradle
plugins {
id 'org.springframework.boot' version '2.5.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'nu.studer.jooq' version '6.0.1'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jooq'
implementation 'org.jooq:jooq-meta:3.15.1'
implementation 'org.jooq:jooq-codegen:3.15.1'
implementation 'org.jooq:jooq:3.15.1'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
jooqGenerator 'org.postgresql:postgresql:42.2.24'
}
jooq {
version = '3.15.1'
edition = nu.studer.gradle.jooq.JooqEdition.OSS
configurations {
main {
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://localhost:5432/postman'
user = 'postgres'
password = ''
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
strategy {
name = 'org.jooq.codegen.DefaultGeneratorStrategy'
}
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
includes = '.*'
excludes = ''
}
target {
packageName = 'com.sample'
}
}
}
}
}
}
输出
任务:generateJooq
2 秒内构建成功
1 个可操作任务:1 个已执行
类是在不同的目录下生成的,因为路径中有一个非英文名称的目录
Jooq 不生成 类。我在 postgresql 42.2.24 中使用 gradle 插件 https://github.com/etiennestuder/gradle-jooq-plugin。我的问题是什么?这是我的 build.gradle
plugins {
id 'org.springframework.boot' version '2.5.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'nu.studer.jooq' version '6.0.1'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jooq'
implementation 'org.jooq:jooq-meta:3.15.1'
implementation 'org.jooq:jooq-codegen:3.15.1'
implementation 'org.jooq:jooq:3.15.1'
runtimeOnly 'org.postgresql:postgresql'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
jooqGenerator 'org.postgresql:postgresql:42.2.24'
}
jooq {
version = '3.15.1'
edition = nu.studer.gradle.jooq.JooqEdition.OSS
configurations {
main {
generationTool {
logging = org.jooq.meta.jaxb.Logging.WARN
jdbc {
driver = 'org.postgresql.Driver'
url = 'jdbc:postgresql://localhost:5432/postman'
user = 'postgres'
password = ''
}
generator {
name = 'org.jooq.codegen.DefaultGenerator'
strategy {
name = 'org.jooq.codegen.DefaultGeneratorStrategy'
}
database {
name = 'org.jooq.meta.postgres.PostgresDatabase'
inputSchema = 'public'
includes = '.*'
excludes = ''
}
target {
packageName = 'com.sample'
}
}
}
}
}
}
输出 任务:generateJooq
2 秒内构建成功 1 个可操作任务:1 个已执行
类是在不同的目录下生成的,因为路径中有一个非英文名称的目录