Lab: Update the Non‐Spring Dependencies ‐ 2: Update Non‐Spring dependencies - shinyay/spring-boot-2-7-to-3-1-upgrade GitHub Wiki
2: Update Non-Spring dependencies Again, we'll use SCAR to iteratively update our non-Spring dependencies.
Make a Small change Locate hard-coded non-Spring dependencies.
Open pom.xml and search through the dependencies within.
Can you find any hard-coded non-Spring versions?
org.projectlombok We found one! Look at lombok -- its version is hard-coded.
org.projectlombok lombok 1.18.22 Check it out in the dependency tree, too:[~/exercises] $ ./mvnw dependency:tree | grep lombok
[INFO] +- org.projectlombok:lombok:jar:1.18.22:compile Let's see if Spring will manage this for us or not.
Comment out the tag.
Go back to the pom.xml and comment-out the hard-coded lombok version:
org.projectlombok org.projectlombok lombok That's the first one! Let's compile and assess before searching for other non-Spring dependencies with hard-coded versions.