У меня есть проект, который временно зависит от hibernate-core
версий 5.2.x и 5.3.x.Я хотел бы знать, откуда берется 5.2.x.Используя задачу dependencies
, я могу видеть, что библиотеки зависят только от 5.3.x.
Использование dependencyInsight:
$ ./gradlew -q :mymodule:dependencyInsight --dependency hibernate-core --configuration compile
org.hibernate:hibernate-core:5.2.10.Final (selected by rule)
variant "runtime"
org.hibernate:hibernate-core:5.3.7.Final -> 5.2.10.Final
variant "runtime"
\--- org.springframework.boot:spring-boot-starter-data-jpa:2.1.0.RELEASE
+--- project :core
| \--- compile
\--- com.github.alturkovic.distributed-lock:distributed-lock-
jdbc:1.2.2
\--- project :core (*)
Но оба перечисленных здесь пакета зависят от 5.3, а не от 5.2.
Так как я могу узнать, откуда взялась эта версия?
РЕДАКТИРОВАТЬ: оба модуля dependencyInsight
, без --configuration
:
$ ./gradlew -q :moduleA:dependencyInsight --dependency hibernate-core
org.hibernate:hibernate-core:5.3.7.Final (selected by rule)
variant "default+runtime" [
Requested attributes not found in the selected variant:
org.gradle.usage = java-api
org.jetbrains.kotlin.platform.type = jvm
]
+--- compileClasspath
\--- org.springframework.boot:spring-boot-starter-data-jpa:2.1.0.RELEASE
+--- project :core
| \--- compileClasspath
\--- com.github.alturkovic.distributed-lock:distributed-lock-jdbc:1.2.2
\--- project :core (*)
(*) - dependencies omitted (listed previously)
A web-based, searchable dependency report is available by adding the --scan option.
$ ./gradlew -q :moduleB:dependencyInsight --dependency hibernate-core
org.hibernate:hibernate-core:5.3.7.Final
variant "runtime" [
Requested attributes not found in the selected variant:
org.gradle.usage = java-api
org.jetbrains.kotlin.platform.type = jvm
]
\--- org.springframework.boot:spring-boot-starter-data-jpa:2.1.0.RELEASE
+--- compileClasspath
\--- com.github.alturkovic.distributed-lock:distributed-lock-jdbc:1.2.2
\--- compileClasspath
(*) - dependencies omitted (listed previously)
A web-based, searchable dependency report is available by adding the --scan option.