Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Looking at the last decade, how have CI and delivery practices changed what a Java build must provide, and what would you prioritise in the next few years?

A decade ago a Java build produced a war file for an application server; today it produces a container image or even a native executable, plus supply-chain evidence such as an SBOM, a signature and provenance. Because teams deploy many times a day, builds must also be fast, so caching and test selection matter far more than before. For the next few years I would prioritise hermetic and reproducible builds, fast feedback, and policy enforced in shared pipelines.

Background to this question

Questions about the last decade test something specific: whether we understand why practices changed, not just which tools are fashionable. A senior engineer who knows why the build output moved from wars to images, and why signatures became necessary, can make sensible bets about what comes next. In this answer, we will look at how the build's output changed, how supply-chain security added new outputs, why speed became a first-class requirement, and then what I would prioritise in the next few years, with reasons.

1From a war File to an Image

Around 2015, a typical enterprise Java build produced a war or ear file. Operations installed it into a shared application server, such as Tomcat, WebLogic or WebSphere, configured separately on each machine. The build's responsibility ended at the archive; the runtime, the JVM version, and much of the configuration belonged to someone else, which is why it worked on one server and not another.

Spring Boot's executable jar moved the server into the application: one jar with an embedded Tomcat that runs with java -jar. Containers then moved the JVM and operating system libraries in too. Today the build's output is usually an OCI image containing the JVM, the application and its layers, built with buildpacks, Jib or a Dockerfile. For some services it is a GraalVM native executable, which starts in milliseconds and uses less memory, at the cost of longer builds and restrictions on reflection. Newer JDK features such as class data sharing and the AOT cache from Project Leyden also let builds prepare startup data ahead of time.

So the build now owns the whole runtime. That is a huge improvement in consistency, because what we test is exactly what runs, but it also means the build is responsible for everything in the image, including the base image's vulnerabilities.

What a Java build produces, then and now
AspectAround 2015Today
Main outputwar or ear filecontainer image or native executable
Runtimeshared app server, managed by operationsinside the image, chosen by the build
Configurationper server, often by handenvironment variables, profiles, config service
Security evidencerarely anySBOM, signature, provenance attestation
Release frequencymonthly or quarterlymany times per day
Build speed concernnightly builds acceptableminutes matter, caching and test selection
The build's responsibility grew from an archive to the whole runtime and its evidence.

2Supply-Chain Security Became a Build Output

Several high-profile incidents, such as Log4Shell in 2021, where organisations could not quickly tell which services contained a vulnerable library, and attacks that compromised build systems to insert malicious code, changed what a build must deliver. It is no longer enough to produce a working artifact; we must also prove what is in it and where it came from.

So modern builds produce three extra outputs. An SBOM, a software bill of materials in a format such as CycloneDX or SPDX, lists every component and version, so the question of which services contain library X becomes a search. A signature, for example made with Sigstore's cosign, lets the deployment platform verify the image came from our pipeline. Provenance, described by frameworks such as SLSA, is a signed statement of which source commit and which build process produced the artifact. Spring Boot itself added SBOM support in recent versions, and can expose it through an actuator endpoint; check your version for details.

3Fast Builds Became a Requirement

When a team released once a month, a 40-minute build was an annoyance. When it deploys ten times a day, and every pull request waits for the build, 40 minutes means developers batch changes, context-switch while waiting, and merge larger, riskier changes. Build time directly affects delivery speed and quality.

This is why caching and test selection became central. Gradle's build cache and configuration cache, the Maven Build Cache Extension and remote caches shared across CI agents let builds skip work whose inputs have not changed. Test selection, running only the tests affected by a change, from simple module-level selection to predictive tools that learn which tests usually fail for a given change, cuts feedback time further. Build performance has become something we measure and budget, like latency in production.

4Priority 1: Hermetic and Reproducible Builds

For the next few years, my first priority would be builds that are hermetic, meaning they depend only on declared, pinned inputs and not on whatever is installed on the agent or downloaded at that moment, and reproducible, meaning the same commit always produces bit-for-bit the same artifact. Reproducibility makes the supply-chain evidence meaningful: anyone can rebuild and check that the published artifact matches the source.

In practice, this means pinning everything, the JDK through toolchains, the build tool through wrappers, plugins, base images by digest, using dependency lock files or verification metadata, and removing timestamps and other variation from artifacts.

XML
<!-- Maven: a fixed timestamp makes jar contents reproducible -->
<properties>
<project.build.outputTimestamp>2026-11-05T00:00:00Z</project.build.outputTimestamp>
</properties>
# check: build twice from the same commit and compare
./mvnw -q clean package && sha256sum target/app.jar # 3b9e...41
./mvnw -q clean package && sha256sum target/app.jar # 3b9e...41 (identical)

Notice the property project.build.outputTimestamp, which recent Maven plugins use instead of the current time for file entries in archives. If two builds still differ, tools such as diffoscope show exactly which file and byte changed.

5Priority 2 and 3: Fast Feedback and Policy in Shared Pipelines

My second priority would be fast feedback as a measured goal: for example, a pull request result in under ten minutes for most services, through remote build caches, test selection, sharing test infrastructure such as Testcontainers across test classes, and splitting slow suites. The aim is to keep changes small, because small changes are what make frequent delivery safe.

My third would be policy enforced in shared pipelines rather than in documents. Rules like every image is scanned and signed, no SNAPSHOT dependencies in releases, or only approved base images belong in versioned pipeline templates and in admission checks on the deployment platform, so they apply to every service automatically. That is the only way to keep hundreds of services consistent as requirements keep growing.

6Follow-up questions

Will native images replace JVM containers?

For some workloads, such as functions and small services that scale to zero, native images are a strong choice. For long-running services, the JVM's just-in-time compilation and newer startup work such as AOT caches close much of the gap without native image restrictions. I expect both to coexist, chosen per service.

Is an SBOM useful if nobody reads it?

Only if it is stored and searchable. The value appears during an incident: when a vulnerable library is announced, a central store of SBOMs answers in minutes which services and versions contain it. Generating SBOMs without collecting them gives little benefit.

What is SLSA?

SLSA, Supply-chain Levels for Software Artifacts, is a framework that describes increasing levels of build integrity, such as builds running on a hosted platform with provenance generated automatically and protected from tampering. It gives a shared vocabulary for how trustworthy an artifact's origin is.

7Conclusion

In this answer, we followed how Java builds changed over a decade: from a war file for an application server to a container image or native executable, with SBOMs, signatures and provenance as new outputs driven by supply-chain attacks, and with speed, caching and test selection becoming essential for frequent deployment. For the coming years we prioritised hermetic and reproducible builds, fast feedback, and policy enforced in shared pipelines.

What to say in the interviewAbout 80 seconds aloud

Open with

Ten years ago a Java build mostly produced a war file, and its job ended there: operations deployed it into a shared application server with its own JVM and configuration.

Then, if they want more

Spring Boot's executable jar pulled the server into the application, and containers pulled in the JVM and OS libraries, so today the build produces an image, or sometimes a GraalVM native executable, and owns the whole runtime. Two other things changed.

Supply-chain incidents like Log4Shell showed we must know what is inside every artifact and where it came from, so builds now produce an SBOM, a signature with something like cosign, and provenance in the sense of SLSA.

And frequent deployment made build speed a requirement: a 40-minute build makes people batch changes, so remote caches, Gradle or Maven build caching and test selection became important. For the next few years I would prioritise three things.

First, hermetic and reproducible builds: pinned JDK, tools, plugins and base images, fixed timestamps, so the same commit gives identical bytes and the provenance is checkable. Second, fast feedback, with a target like pull request results under ten minutes.

Third, policy enforced in shared pipeline templates and admission checks, not in wiki pages, so every service gets scanning, signing and release rules automatically.

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.
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 "Looking at the last decade, how have CI and delivery practices changed what a Java build...": https://scrivio-interview-library.netlify.app/java/version-control-and-ci/507b506199/