Lab: Update the Non‐Spring 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 lombok's hard-coded version in our pom.xml, let's continue with SCAR.

Compile the code.

[~/exercises] $ ./mvnw clean compile ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.578 s [INFO] Finished at: 2023-10-02T18:30:15-06:00 [INFO] ------------------------------------------------------------------------ ... Awesome! Our code still compiles...now let's assess what happened

Assess the version change.

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

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

[INFO] +- org.projectlombok:lombok:jar:1.18.28:compile That's much better. The version is now the newer 1.18.28 rather than the older 1.18.22.

Lombok is a widely used project and the Spring Maintainers have provided dependency management for it. Thanks for managing that for us, Spring!