How do I know the version of a transitive dependency that a Spring Boot starter dependency brings into my project?

spring initializr
spring-boot-starter-web
spring boot find spring version
spring boot override dependency version
transitive dependency in spring boot
maven override dependency version from parent
how to determine spring version
what version of spring does spring boot use

For example, how do I find out the version of Hibernate that the Spring Boot spring-boot-starter-data-jpa starter dependency is bringing into my project?

The list of dependencies is available in the Appendix F. of the documentation and in the pom.xml of the spring-boot-dependencies artifact, which you should be able to find on your classpath.

You can also go the public repository of Spring Boot and see the pom.xml for every released version in a separate branch.

Overriding Dependency Versions with Spring Boot, How do I know the version of a transitive dependency that a Spring Boot starter dependency brings into my project? spring boot override dependency version project or one of your dependencies needs to override the version of a transitive dependency that is managed by the parent POM, just add a version property for that dependency. For this rule to work the parent POM has to define version properties for all the dependencies that it manages (the spring-boot-starter-parent does this).

When using maven, use the below command to print dependency tree

mvn dependency:tree

http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html

When using gradle:

gradlew dependencies

dependencies - Displays all dependencies declared in root project 'my-project'.

dependencyInsight - Displays the insight into a specific dependency in root project 'my-project'.

Also, an IDE shows this information in some window. For example, IntelliJ shows all project dependencies in the project window under 'External Libraries' and in the maven window.

Mastering Spring Boot 2.0: Build modern, cloud-native, and , saying “hey, I know what I am doing, trust me.” Unfortunately, which needs Reactor 2.5 through a transitive dependency on the new. Cloud Foundry Java project or one of your dependencies needs to override the version of a transitive manages (the spring-boot-starter-parent does this). $ cd app-2 $ . Overriding Dependency Versions with Spring Boot if your project or one of your dependencies needs to override the version of a transitive dependency that is managed by the parent POM, just add

To supplement Yuva's answer, if you are looking for hibernate's version, you may run

gradle dependencyInsight --dependency hibernate --configuration compile

or if your project is structured as a multi-project, under project root run

gradle submodule:dependencyInsight --dependency hibernate --configuration compile

The command gives result for what depends on hibernate in this project whereas gradle dependencies gives result for what dependencies this project have

Spring Boot Reference Documentation, Spring Boot provides a wide range of Starter projects. JDBC applications spring-boot-starter-hateoas: Make your services more RESTful The Starter Parent POM defines key versions of dependencies and Maven plugins. is an easy way to bring in multiple coordinated dependencies including transitive dependencies. Spring Boot project management uses maven Dependency Management mechanism for centralizing dependency information so that we can omit version tags for dependencies. We can also override default setting e.g. changing default java version from 1.6 to 1.8:

can also be found here:

https://docs.spring.io/spring-boot/docs/<version>/reference/htmlsingle/#appendix-dependency-versions

where version is spring-boot-starter-parent version. e.g.

https://docs.spring.io/spring-boot/docs/1.5.17.RELEASE/reference/htmlsingle/#appendix-dependency-versions

Spring Boot Reference Guide, Check the spring.io web-site for a wealth of reference documentation. Classes | Test Auto-configuration Annotations | Executable Jars | Dependency Versions Typically, your project declares dependencies to one or more “Starters”. quickly and with a consistent, supported set of managed transitive dependencies. The Spring Boot Maven and Gradle plugins both package our application as executable JARs – such a file can't be used in another project since class files are put into BOOT-INF/classes. This is not a bug, but a feature.

Starter dependencies promoting misuse Maven's transitive , Typically your project will declare dependencies to one or more “Starter POMs”. Before we begin, open a terminal to check that you have valid versions of Java quickly and with a consistent, supported set of managed transitive dependencies. These providers tend to require that you “bring your own container”; they  So if I had "spring-boot.version" variable defined in "spring-boot-dependencies" module, that would be a little bit cleaner in terms of future support. Otherwise, I have to maintain this variable myself and update both this value and parent's version (I extend "spring-boot-starter-parent") - not a big issue, obviously, but I'd prefer to avoid this.

Spring dependencies in Gradle can be tricky, Typically, any dependency that you require To use version agnostic URLs for Webjars Server), but in addition it will need to know The starter brings in dependencies to your project. To do so, exclude any transitive dependencies on  Spring web brings all required dependencies to build web application. --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> Above spring-boot-starter-web dependency, internally imports all given dependencies and add to your project. Notice how some dependencies are direct

Spring Boot in Action - Programação I - 13, From Spring Boot's own documentation (as well as the many examples that starter dependencies are intended to transitively bring in numerous other depende. just include the spring-boot-starter-data-jpa dependency in your project, If I wanted to use "maven dependency:analyze" to check that I'm not  Dependency Injection; Home » org.springframework.boot » spring-boot-starter-data-jpa Spring Boot Starter Data JPA. Starter for using Spring Data JPA with Hibernate