设置显式版本后 Jooq-codegen 降级
Jooq-codegen downgrade after set explicit version
我遇到了 jooq-codegen 版本的问题。
在主要 build.gradle
中,我在 2.4.5
版本和依赖部分中得到了 spring 引导:
implementation('org.springframework.boot:spring-boot-starter-jooq')
我也用dependencyMangement:
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
并在子项目 build.gradle
的依赖部分中添加版本“3.14.8”
compile("org.jooq:jooq-codegen:3.14.8")
但是在我运行命令之后:
gw -q dependencies --configuration runtimeClasspath | grep jooq
我知道了:
| | | | +--- org.jooq:jooq:3.14.8 -> 3.13.5
| | +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5
| | | \--- org.jooq:jooq:3.14.8 -> 3.13.5 (*)
| | +--- org.jooq:jooq-codegen:3.14.8 -> 3.13.5
| | | +--- org.jooq:jooq:3.13.5 (*)
| | | \--- org.jooq:jooq-meta:3.13.5
| | | \--- org.jooq:jooq:3.13.5 (*)
| | +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*).
| +--- org.jooq:jooq-codegen:3.14.8 -> 3.13.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
如何解决此降级问题?为什么会这样?
我在主 build.gradle
文件中修复它添加:
jooq {
version = dependencyManagement.importedProperties['jooq.version']
}
并从 Gradle 个文件中删除所有显式版本
我遇到了 jooq-codegen 版本的问题。
在主要 build.gradle
中,我在 2.4.5
版本和依赖部分中得到了 spring 引导:
implementation('org.springframework.boot:spring-boot-starter-jooq')
我也用dependencyMangement:
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
并在子项目 build.gradle
的依赖部分中添加版本“3.14.8”
compile("org.jooq:jooq-codegen:3.14.8")
但是在我运行命令之后:
gw -q dependencies --configuration runtimeClasspath | grep jooq
我知道了:
| | | | +--- org.jooq:jooq:3.14.8 -> 3.13.5
| | +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5
| | | \--- org.jooq:jooq:3.14.8 -> 3.13.5 (*)
| | +--- org.jooq:jooq-codegen:3.14.8 -> 3.13.5
| | | +--- org.jooq:jooq:3.13.5 (*)
| | | \--- org.jooq:jooq-meta:3.13.5
| | | \--- org.jooq:jooq:3.13.5 (*)
| | +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*).
| +--- org.jooq:jooq-codegen:3.14.8 -> 3.13.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
| +--- org.springframework.boot:spring-boot-starter-jooq -> 2.4.5 (*)
如何解决此降级问题?为什么会这样?
我在主 build.gradle
文件中修复它添加:
jooq {
version = dependencyManagement.importedProperties['jooq.version']
}
并从 Gradle 个文件中删除所有显式版本