My aim was to show every significant edit to our Test Driven Gilded Rose codebase, but in practice there is a whole category of changes that I haven’t shown you - upgrading dependencies.
As many of our dependencies have new versions I thought that now would be a good time to show my thought processes in deciding when, how and whether to keep up to date. It’s a bit tedious to be honest! As you will see it mainly goes smoothly, with occasional bouts of having to work through issues that we really shouldn’t have, and at least one problem that I just don’t know how to solve.
In this episode
00:00:38 What are our dependencies?
00:01:01 Gradle is out of date, so let's meet trouble half way
00:02:36 Devising an upgrade strategy
00:03:57 Test libraries are low-hanging fruit
00:04:15 Install the gradle-versions-plugin
00:04:59 IntelliJ doesn't show find results inside closed task categories
00:06:37 Playwright and Strikt are also non-production dependencies
00:07:51 Upgrade http4k
00:08:32 Dependency plugin weirdness
00:09:57 We might need extra care with databinding and logging
00:10:31 More production libraries
00:13:03 Database requires care because of migrations - we can't just run the tests
00:15:30 Check we can rebuild our local databases with the dependency upgrades
00:16:37 Oh
00:18:28 Take the last Flyway version that we can get to work
00:20:38 How about upgrading Kotlin?
00:22:14 Tidy up before we call it a day
00:22:41 Review
There is a playlist of TDD Gilded Rose episodes - • Test Driven Gilded Rose in Kotlin
The codebase is available on GitHub https://github.com/dmcg/gilded-rose-tdd
If you like this video, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style.
Watch video Upgrading Dependencies for No Fun and No Profit online without registration, duration hours minute second in high quality. This video was added by user Pairing with Duncan 25 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 593 once and liked it 39 people.