Scrivio Interview library
ConceptIntermediate6 min read · updated 12 November 2026

A team asks whether a version catalog replaces the Spring Boot BOM. Explain the difference between a version catalog and a platform.

No, a version catalog does not replace the Spring Boot BOM. A catalog is a list of named coordinates and versions that only takes effect where a build script references an entry, and it has no influence on transitive dependencies. A platform, which is what a BOM becomes in Gradle, takes part in dependency resolution and aligns the versions of everything in the graph, including libraries we never declared. The usual setup uses both: the catalog declares the platform and our direct dependencies, and the platform aligns the versions.

Why this question is asked

The question comes up in almost every team that adopts version catalogs. The catalog looks like a central list of versions, so it seems natural to delete the Spring Boot BOM and put every version into libs.versions.toml. Doing that quietly breaks the alignment that Spring Boot gives us, and the problems show up later as mismatched library versions at runtime. Interviewers ask it to check that we know the difference between declaring a version and resolving one. In this answer, we will recap what each one is, see an example where the catalog alone fails, see how a platform fixes it, and then set up the two together.

1A Quick Recap of the Two Ideas

A version catalog is a file of aliases, such as jackson-databind, each mapping to coordinates and usually a version. Gradle generates accessors from it, like libs.jackson.databind. When a build script writes implementation(libs.jackson.databind), it is exactly as if it had written implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2"). That is all a catalog does: it saves typing and keeps declarations consistent.

A platform is a special kind of dependency that contains only dependency constraints, recommendations of the form if anything in the graph uses module X, use version Y. In Gradle, importing a Maven BOM with platform(...) turns it into a platform. The Spring Boot BOM, spring-boot-dependencies, holds constraints for hundreds of libraries that Boot has tested together. Because constraints take part in resolution, they apply to transitive dependencies as well as direct ones.

2Where a Catalog Alone Falls Short

Suppose we remove the Boot BOM and put versions in the catalog instead. Our service uses spring-boot-starter-webflux, which runs on Netty, and a reporting library that also uses one Netty module.

Java
# gradle/libs.versions.toml (no BOM)
[libraries]
boot-webflux = "org.springframework.boot:spring-boot-starter-webflux:3.5.0"
// build.gradle.kts
dependencies {
implementation(libs.boot.webflux) // brings netty-handler, netty-codec-http ... at Boot's Netty version
implementation("com.example:report-lib:3.1.0") // depends on netty-codec-mqtt 4.1.100.Final
}
// ./gradlew dependencies --configuration runtimeClasspath (shortened)
// netty-handler 4.1.1xx.Final <- from the starter
// netty-codec 4.1.100.Final -> 4.1.1xx.Final <- highest wins, shared module
// netty-codec-mqtt 4.1.100.Final <- nobody else asks for it, so it stays old

Notice what happened. The catalog only gave a version to the one starter we declared. Every Netty module then resolved on its own, by the highest version anyone requested, and netty-codec-mqtt, which only report-lib asks for, stayed on an older release than the rest of its family. Netty modules from different releases are meant to be used at one version, and mixing them is a classic source of NoSuchMethodError or ClassNotFoundException at runtime. The catalog cannot help, because a catalog entry has no effect on a module that no build script references. (Some families, Jackson among them, publish Gradle metadata that aligns their own modules; most libraries do not, which is why we cannot rely on it.)

3How a Platform Aligns the Whole Graph

Now we put the BOM back as a platform. The Spring Boot BOM imports the Netty BOM, so its constraints apply to every Netty module in the graph, wherever it came from.

Java
dependencies {
implementation(platform("org.springframework.boot:spring-boot-dependencies:3.5.0"))
implementation("org.springframework.boot:spring-boot-starter-webflux") // version from the platform
implementation("com.example:report-lib:3.1.0")
}
// runtimeClasspath (shortened)
// netty-handler 4.1.1xx.Final
// netty-codec 4.1.100.Final -> 4.1.1xx.Final
// netty-codec-mqtt 4.1.100.Final -> 4.1.1xx.Final aligned by the platform's constraint
Catalog and platform compared
QuestionVersion catalogPlatform (BOM)
What is it?Named coordinates and versionsA set of dependency constraints
When does it take effect?Only where an entry is referencedDuring resolution of the whole graph
Affects transitive dependencies?NoYes, aligns them
Main benefitReadable, consistent declarationsVersions tested together, aligned
Published asA catalog artifact (TOML)A BOM or java-platform module

The arrow shows the platform at work: report-lib asked for netty-codec-mqtt 4.1.100.Final, the platform recommended Boot's tested version, and resolution picked it. The exact Netty version, shown here as 4.1.1xx, depends on the Boot release you use; the point is that the whole family moves together. Note that with a normal platform(), the highest-wins rule still applies, so a library requesting a newer version than the BOM would still win. The io.spring.dependency-management plugin applies the BOM more strictly, Maven-style, overriding transitive requests with the managed version.

4Using Both Together

The two fit together naturally. The catalog declares the platform itself and our direct dependencies, mostly without versions, because the platform supplies them. Versions we choose ourselves, for libraries Boot does not manage, go in the catalog.

Java
# gradle/libs.versions.toml
[versions]
springBoot = "3.5.0"
resilience4j = "2.2.0"
[libraries]
spring-boot-bom = { module = "org.springframework.boot:spring-boot-dependencies", version.ref = "springBoot" }
spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web" }
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind" }
resilience4j-retry = { module = "io.github.resilience4j:resilience4j-retry", version.ref = "resilience4j" }
[plugins]
spring-boot = { id = "org.springframework.boot", version.ref = "springBoot" }
// build.gradle.kts
plugins { java; alias(libs.plugins.spring.boot) }
dependencies {
implementation(platform(libs.spring.boot.bom))
implementation(libs.spring.boot.starter.web)
implementation(libs.jackson.databind)
implementation(libs.resilience4j.retry)
}
Step throughWho does what
  1. Build scriptreferences libs.* entries
  2. Version catalognames coordinates; versions for unmanaged libraries
  3. Platform (Spring Boot BOM)constraints that align the whole graph
  4. Resolved classpathone tested version per module

4 layers, from the top down. Step through them one at a time.

Notice that one version, springBoot, drives both the plugin and the BOM, so they cannot drift apart. Teams that prefer the io.spring.dependency-management plugin can apply it from the catalog too and let it import the Boot BOM; the effect is the same idea with Maven-style overriding. Either way, the BOM stays, and the catalog makes it convenient to declare.

5Follow-up questions

Can a catalog entry override a version the BOM manages?

Yes, by giving the entry a version. With a normal platform, a higher catalog version wins by highest-wins; a lower one would lose unless declared strictly. With the dependency management plugin, the usual way to override is the BOM's version property, for example extra["jackson-bom.version"]; check the property names for your Boot version.

Should a library use the Boot BOM as a platform?

It may, as a normal platform(), to compile and test against Boot's versions. It should not use enforcedPlatform, because that would force Boot's versions on every consumer. Applications decide the final versions.

Why do people confuse the two?

Because both are central places with versions in them. The difference is when they act: the catalog acts when we write the build script, as a shorthand, while the platform acts when Gradle resolves the graph, as a rule. Only the second can reach dependencies we did not declare.

6Conclusion

In this answer, we saw that a version catalog is a list of named coordinates and versions that only affects the entries a build script references, so it does not influence transitive resolution and cannot keep a family of modules such as Netty's aligned. A platform, such as the Spring Boot BOM imported with platform(), takes part in resolution and aligns versions across the whole graph. The usual setup uses both: the catalog declares the platform and direct dependencies, the platform aligns versions, and the BOM stays in place through platform() or the dependency management plugin.

What to say in the interviewAbout 90 seconds aloud

Open with

No, it does not replace it, and I would keep the Boot BOM. The two work at different moments. A version catalog is a list of aliases with coordinates and versions; libs.jackson.databind is just shorthand for writing that coordinate in the build script.

Then, if they want more

It only takes effect where we reference an entry, and it has no say in how transitive dependencies resolve. A platform, which is what the Spring Boot BOM becomes when imported with platform(), is a set of dependency constraints that takes part in resolution. It applies to every module in the graph, including ones that come in transitively.

So if we deleted the BOM and moved versions into the catalog, we would fix the versions we declare, but modules that arrive transitively, for example a Netty module that only some library uses, would resolve on their own, and one family could end up split across releases, with runtime errors like NoSuchMethodError.

With the platform, they are all aligned to the version Boot tested. The setup I recommend uses both: the catalog declares the Boot BOM as a library and our direct dependencies, mostly without versions, plus versions for libraries Boot does not manage, and the build applies implementation(platform(libs.spring.boot.bom)) or uses the dependency management plugin.

One springBoot version in the catalog then drives both the plugin and the BOM.

About this answer

Last updated
12 November 2026
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.
Official documentation
Gradle user manual
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 "A team asks whether a version catalog replaces the Spring Boot BOM. Explain the...": https://scrivio-interview-library.netlify.app/java/gradle/1788571e80/