Lab: Update the Spring Spring Boot dependencies ‐ 3: Compile and Assess - shinyay/spring-boot-2-7-to-3-1-upgrade GitHub Wiki

3: Compile and Assess Now that we've commented-out all hard-coded Spring dependency versions in our pom.xml, let's continue with SCAR.

Compile the code.

We've made our small change, but does it compile?

[~/exercises] $ ./mvnw clean compile ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.557 s [INFO] Finished at: 2023-10-02T18:17:21-06:00 [INFO] ------------------------------------------------------------------------ ... It does!

Let's Assess the change in more detail.

Assess the change.

Run the dependency:tree goal again and note how the output changed.

[~/exercises] $ ./mvnw dependency:tree | grep spring-data-jdbc You'll see output that looks like this:

[INFO] +- org.springframework.data:spring-data-jdbc:jar:3.1.3:compile That's better! The version is now 3.1.3 instead of 2.4.14

The Spring Boot Parent is now managing that dependency for us, and it should remain up to date with whatever version the parent deems necessary to include that dependency.

Thanks, Spring Boot Parent!

⚠️ **GitHub.com Fallback** ⚠️