I have a project that depends transitively on hibernate-core
versions 5.2.x and 5.3.x.
I would like to know where does 5.2.x comes from.
Using the dependencies
task I can only see libraries depend on 5.3.x.
Using 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 (*)
But both packages listed here depend on 5.3, not 5.2.
So how can I know where this version comes from?
EDIT: both modules dependencyInsight
, without --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.