Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Your company publishes Java client libraries to external customers who stay on old versions for years. What versioning and support policy would you set, and what does it cost?

Use semantic versioning with documented compatibility rules and automated API compatibility checks, and publish a support window per major version during which security fixes are backported. Deprecate with warnings and migration guides at least one major version before removal. Each supported line costs CI, test environments and engineers who still know that code, so limit the number of lines, and track which versions customers actually use to decide when support can end.

Why this question is asked

External customers are not like internal teams. We cannot open pull requests in their repositories, we cannot see their code, and many of them upgrade only when forced, for example once a year or once every three years. A client library they embed therefore lives far longer than our own services. Interviewers ask this at the most senior level because the answer is a policy with a price tag: every promise to customers costs engineering capacity for years. In this answer, we will define the compatibility rules, set support windows, plan deprecations, count the cost of each supported line, and use usage data to make the decisions.

1Compatibility Rules Customers Can Rely On

We use semantic versioning, but for external customers the version number alone is not enough; we publish what compatibility means. For example: within a major version, code compiled against an older minor version keeps working with a newer one, which is binary compatibility; configuration and serialised formats remain readable; and the minimum supported Java version does not rise within a major. We also say what is not covered, such as classes in packages named internal.

Then we enforce these rules in the build with tools such as japicmp or revapi, comparing each release with the previous one, so a compatibility break inside a major version cannot be released by accident. For a client of a remote API, we also test the library against the oldest server API version still supported, because customers mix versions on both sides.

2A Published Support Window per Major Version

Customers need to plan, so we publish a support policy per major version, in a table they can read on our website. A common shape is: the newest major receives features, fixes and security fixes; the previous major receives bug and security fixes for a fixed period after the next major is released, for example 18 months; then security fixes only for a further 12 months; then end of life. Some vendors also offer a commercial extended support option for customers who need more time, which makes the cost visible to the customer rather than hidden in our team.

A published support policy, as of November 2026
VersionReleasedStatusSupport ends
5.x2026-03active: features, fixes, security18 months after 6.0
4.x2024-09maintenance: fixes, security2027-09
3.x2023-01security fixes only2027-03
2.x2021-06end of lifeended 2026-06
Customers can see in advance what each line receives and when it ends.

3Deprecation With Warnings and Migration Guides

Breaking changes are sometimes necessary, but they must never be a surprise. The rule I would set is that anything removed in a major version must have been deprecated, with its replacement available, for at least one major version before. In Java, that means the replacement API ships in, say, 4.3, and the old one is marked @Deprecated(since = "4.3", forRemoval = true), so customers compiling against 4.x see removal warnings at the exact lines they will need to change.

Each major release comes with a migration guide listing every breaking change with a before-and-after example, and, where possible, an automated migration recipe, for example for OpenRewrite, that customers can run on their own code. A customer who has been reading warnings for a year and has a recipe can upgrade in a day; a customer surprised by a removal may stay on the old version for years, which costs us more in the end.

4What Each Supported Line Costs

Every supported line is a running cost, and this is the part leaders often underestimate. Each line needs its own maintenance branch and CI pipeline, building with the Java version and dependencies of that line. It needs test environments, often against the server versions that line supports. Every security fix has to be backported, tested and released on each line, so with four lines one vulnerability becomes four fixes and four releases, and old lines often depend on library versions that are themselves out of support, which makes fixes harder.

Most of all, each line needs engineers who still understand that code. Three years after a major release, the people who wrote it may have moved on. So limiting the number of supported lines, perhaps to two or three at any time, is not about saving CI minutes; it is about having enough attention for each line to support it properly. When we promise a support window, we should know which team pays for it.

5Using Usage Data to Decide When Support Ends

Decisions about ending support should be based on evidence, not guesses. We can learn which versions customers use from several sources: download statistics per version from the repository, the version sent in a User-Agent header by the client library on each request to our API, which is the most accurate, and support tickets. A chart showing, for example, that 3.x still carries 22 percent of API traffic while 2.x is under 1 percent tells us where to focus.

Java
// the client library identifies itself on every request
HttpRequest request = HttpRequest.newBuilder(uri)
.header("User-Agent", "acme-java-client/" + Version.CURRENT + " java/" + Runtime.version().feature())
.build();
// server-side logs, aggregated:
// acme-java-client/5.2.1 java/25 41%
// acme-java-client/4.8.3 java/21 36%
// acme-java-client/3.9.7 java/17 22%
// acme-java-client/2.x java/11 1%
Step throughDeciding the end of a supported line
  1. Measure usage per versionUser-Agent, downloads, tickets
  2. Announce end of life early12 months ahead, with migration guide
  3. Contact remaining userstargeted help, automated recipe
  4. Usage below the agreed threshold?
    YesEnd support on the published dateNoOffer paid extended support or extend once

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

The published date is the default; usage data tells us who needs help before it.

With this data, we can contact the remaining users of a line before its end of life, offer help with migration, and decide whether an extension is worth its cost. It also tells us the Java versions customers run, which informs when we can raise the minimum Java version in the next major. We must document this header in the privacy notes, because it is data about customers' systems.

6Follow-up questions

Should we raise the minimum Java version in a minor release?

No. Customers on that Java version would be stuck on the old minor and miss fixes. The minimum Java version should rise only with a major version, and it helps to announce it in advance, for example that 6.0 will require Java 21.

How do we handle a critical vulnerability in an end-of-life version?

The policy should say: no fixes after end of life. In practice, for a severe vulnerability with significant usage, some vendors make an exception and say so publicly. Making exceptions too often makes the policy meaningless, so they should be rare and documented.

Is long-term support for one line better than many short lines?

Many vendors choose a long-term support line every few majors, as the JDK does, with shorter support for the versions in between. This lets conservative customers stay on a long-term line while others take every release, and it limits how many old lines we carry.

7Conclusion

In this answer, we set a versioning and support policy for external Java client libraries: semantic versioning with documented, automatically checked compatibility rules, a published support window per major with security fixes backported during it, deprecation with warnings and migration guides at least one major before removal, and a small number of supported lines because each one costs CI, environments and knowledgeable engineers, with usage data deciding when support ends.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start with semantic versioning and publish what compatibility means for us: within a major, binary compatibility, the same minimum Java version, and readable configuration. That is enforced in the build with japicmp or revapi against the previous release, so a break inside a major cannot slip out.

Then, if they want more

Next I would publish a support policy per major version: the newest major gets features and fixes, the previous one gets fixes for a fixed period after the next major, then security fixes only, then end of life, with dates customers can plan around.

Removals require deprecation at least one major before, with forRemoval warnings, a migration guide and ideally an OpenRewrite recipe, so upgrades are cheap.

The cost is the important part: each supported line needs its own branch, CI on its own Java version, test environments against the server versions it supports, every security fix backported and released, and engineers who still know that code. So I would keep it to two or three lines, maybe with a long-term line every few majors.

Finally I would measure real usage, mostly from the client version in the User-Agent header, plus downloads and tickets, to contact remaining users before end of life and decide based on evidence.

About this answer

Last updated
12 November 2026
Versions it names
Java 21
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. 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 publishes Java client libraries to external customers who stay on old...": https://scrivio-interview-library.netlify.app/java/version-control-and-ci/8789160435/