Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Your company has 400 services with libraries several major versions behind, and upgrades are blocked by fear of breakage. How would you create a sustainable upgrade practice?

I would make upgrades a routine the platform owns rather than a project each team fears. A central platform BOM lets services take tested versions together, once per platform release. Automated tooling, Renovate or Dependabot plus OpenRewrite recipes, does the mechanical work. Investment in contract and integration tests makes upgrades safe to merge. A regular cadence with deadlines and dashboards of version drift per team keeps progress visible. And leadership support schedules the time, treating upgrades as maintenance that is never optional.

Why this question is asked

When upgrades are blocked by fear, the fear is usually rational: each service is several major versions behind, the jumps are big, the tests are thin, and the last upgrade someone tried broke production. The longer this goes on, the bigger each jump becomes, until a security incident forces an emergency upgrade under the worst conditions. Interviewers ask this leadership question because fixing it requires changing a system of incentives, tools and habits across many teams, not just one technical decision. In this answer, we will look at why upgrades stall, then go through the platform BOM, automation, tests, cadence and visibility, and the leadership part.

1Why Upgrades Stall

Upgrades stall because each team pays the full cost alone and sees little benefit. A team that wants to move from Spring Boot 2.7 to 3.5 must work out compatible versions for dozens of libraries, rewrite javax imports to jakarta, fix deprecated APIs and hope the tests catch everything. Every team does the same investigation separately, 400 times. Meanwhile, product work has visible deadlines and upgrades do not, so they lose every prioritisation discussion.

The result is a reinforcing loop: being behind makes each upgrade bigger, bigger upgrades are riskier, risk creates fear, and fear delays the next upgrade. A sustainable practice breaks this loop by making each upgrade small, cheap and safe, and by giving it a place in the schedule.

2A Central Platform BOM

The first lever is to do the version work once instead of 400 times. The platform team publishes a BOM, a bill of materials, that fixes the versions of Spring Boot and the other common libraries, such as the company's own modules, the database drivers and the observability stack. Each platform release is tested together, for example quarterly, with the platform team running a set of reference services against it.

XML
<parent>
<groupId>com.example.platform</groupId>
<artifactId>platform-parent</artifactId>
<version>2026.Q4</version> <!-- Spring Boot 3.5.x, Jackson, drivers, company libraries, all tested together -->
</parent>
<!-- Service dependencies declare no versions; upgrading means changing this one line -->

Notice what this changes for a service team: an upgrade is now one line plus whatever the release notes tell them to change. The investigation, the compatibility testing and the migration notes are done by the platform team, once. Services that stay within one or two platform releases always face small steps.

3Automation for the Mechanical Work

Most of the work in a major upgrade is mechanical: renaming packages, replacing deprecated calls, updating configuration property names. That is exactly what tools should do. Renovate or Dependabot opens the pull request that bumps the platform version in each repository. OpenRewrite, a tool that parses code into a full syntax tree and applies recipes, performs the code changes; there are recipes for the Spring Boot 2 to 3 migration, javax to jakarta, JUnit 4 to 5 and many library upgrades, and the platform team can write recipes for its own APIs.

Step throughOne platform release reaching 400 services
  1. Platform team builds release 2026.Q4BOM, notes, OpenRewrite recipes
  2. Reference services pass?
    YesPublish the releaseNoFix, then test again
  3. Renovate opens PRs in every repoversion bump plus recipe changes
  4. Service tests green?
    YesTeam reviews and mergesNoTeam fixes, reports gaps to platform
  5. Dashboard shows adoption per teamdeadline: two releases

5 steps in order. Play them, or step through them one at a time.

The expensive work happens once in the platform team; services mostly review and merge.

Together they turn a week of a developer's time into a pull request that is mostly ready. The team reviews it, fixes the few things the recipe could not handle, and merges. The platform team watches which manual fixes come up repeatedly and turns them into new recipes.

4Tests That Make Upgrades Safe

Automation produces pull requests; tests decide whether merging them is safe. Fear of breakage is often a correct reading of weak tests. Library upgrades rarely break business logic; they break integration points, such as JSON formats, HTTP behaviour, database mappings and message serialisation. So the most valuable investments are integration tests that start the real application context with real infrastructure in Testcontainers, and contract tests between services that verify requests and responses still match what consumers expect.

This is an investment that leadership has to fund, because services without tests cannot join the routine safely. A practical approach is to require a minimum set before a service is upgraded by automation: a context-loading test, a test per external API against a contract, and a persistence test. Teams that add those see their next upgrades become routine, which is the best argument for the others.

5Cadence, Deadlines and Dashboards of Drift

A routine needs a rhythm. A quarterly platform release with a rule such as every service must be within two releases, and on a supported Spring Boot and JDK line, gives teams predictable work and a clear deadline. Security fixes outside the cadence still go out immediately as patch releases of the platform BOM.

Visibility makes the rule real. A dashboard built from the services' dependency data shows, per team, which platform release each service uses, how far behind it is, and which known vulnerabilities that implies. A simple measure such as libyears, the total age of outdated dependencies, or releases behind the current platform, makes drift comparable across teams. Published openly, it creates healthy pressure without blame and shows leadership where help is needed.

Version drift dashboard, example
TeamServicesBehind current platformCritical CVEs
Payments240 to 1 release0
Catalog311 release0
Logistics452 to 5 releases3
Legacy billing12Spring Boot 2.7, unsupported7
Drift becomes a shared fact rather than an opinion; the bottom rows are where support is needed.

6Leadership: Upgrades Are Maintenance, Not Optional

None of this works if upgrade time must be fought for in every planning meeting. Leadership has to treat it like any other maintenance: a fixed share of each team's capacity, for example ten percent, reserved for platform upgrades and dependency hygiene, and counted in planning rather than squeezed in. Product leaders accept it more easily when the cost is framed in their terms: the last emergency upgrade after a critical vulnerability, the features delayed by an unsupported framework, and the cost of extended vendor support.

For the teams furthest behind, a one-time push is usually needed, with platform engineers pairing with them to cross the big jumps, such as javax to jakarta. After that, the routine keeps them current. Success is measured by the dashboard: the share of services within two releases rising quarter after quarter, and the time from a critical vulnerability to a fleet-wide fix falling from months to days.

7Follow-up questions

What do you do with services nobody owns?

Assign an owner or decommission them. An unowned service cannot follow the cadence, and it will be the one exposed in the next security incident. The drift dashboard usually reveals these services, which makes the ownership discussion concrete.

How do you handle a team that keeps missing the deadline?

First find out why: missing tests, a blocking library, or no capacity. The platform team helps with the first two, and the capacity problem goes to their leadership with the dashboard as evidence. Repeated misses with known vulnerabilities escalate as a risk acceptance that a senior leader must sign.

Is a monorepo necessary for this?

No. It makes some things easier, such as running recipes across all code at once, but Renovate, OpenRewrite and a platform BOM work well across hundreds of separate repositories. The key ingredients are the shared versions, the automation and the cadence, not the repository layout.

8Conclusion

In this answer, we saw that upgrades stall because each team pays the full cost alone and the jumps keep growing. A sustainable practice breaks that loop with a central platform BOM tested once per release, Renovate or Dependabot plus OpenRewrite recipes for the mechanical work, contract and integration tests that make merging safe, a regular cadence with deadlines and drift dashboards per team, and leadership that reserves capacity for upgrades as normal maintenance.

What to say in the interviewAbout 80 seconds aloud

Open with

The underlying problem is that each team pays the full cost of an upgrade alone, so upgrades lose every prioritisation discussion, the gap grows and the fear is justified.

Then, if they want more

I would break that loop in five ways. First, a central platform BOM: the platform team chooses and tests Spring Boot, drivers, observability and company libraries together, for example quarterly, so services upgrade by changing one parent version.

Second, automation: Renovate or Dependabot opens the pull request in every repository, and OpenRewrite recipes do the mechanical changes like javax to jakarta or deprecated APIs, with the platform writing recipes for its own APIs.

Third, tests: upgrades break integration points, so I would invest in integration tests with Testcontainers and contract tests between services, and set a minimum test bar for services joining the routine. Fourth, cadence and visibility: every service stays within two platform releases, security fixes go out immediately, and a public dashboard shows drift and open vulnerabilities per team.

Fifth, leadership: reserve a fixed share of capacity, say ten percent, for upgrades as maintenance, and fund a one-time push with platform engineers pairing with the teams furthest behind. I would measure success by the share of services current and the time to patch a critical vulnerability across the fleet.

About this answer

Last updated
12 November 2026
Versions it names
JUnit 4, Spring Boot 2, Spring Boot 2.7, Spring Boot 3.5
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company has 400 services with libraries several major versions behind, and upgrades...": https://scrivio-interview-library.netlify.app/java/utility-libraries/d4723659ee/