Know thy neighbours: dependency management done right
summary
A Spring Initializr app with two lines of business code unpacks into 2 lines of app code → ~10,000 class files after deconstructing the fat JAR; another example shows 222 LOC → ~50,000 lines in production with five direct and 54 transitive dependencies. Demonstrates a live exploit: an outdated Spring Data REST using SpEL allows remote command execution. Uses concrete tools: Maven Versions, maven-dependency-analyze, and Snyk Maven plugin + CLI to scan on build, remove unused deps, and automate frequent, small updates.
AI-written summary · about
chapters (15)
- 0:00Intro
- 6:57Spring Initializer
- 12:24Picking dependencies
- 13:02How good is it
- 15:30Size
- 16:31Update
- 17:07Dependency Health
- 18:31Updating
- 21:54Issues with dependencies
- 22:40Problems with dependencies
- 30:35When to remove dependencies
- 35:57Recap
- 40:38Questions
- 41:00What kind of measure do you apply
- 46:35Dependency management tools
