Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Build time across your 300-engineer Java organisation is a growing complaint. How would you justify and roll out remote build caching and other build performance investments?

I would turn the complaint into numbers first: median and p90 build times locally and in CI, and how often engineers wait for them, then express that as engineer hours and CI compute per year, which usually costs far more than a small build team. With that case approved, I would start with the changes that pay back fastest, a remote build cache, the configuration cache, parallel execution and test splitting, roll them out through shared convention plugins so every project benefits, and publish the metrics continuously so improvements and regressions are visible.

Background to this question

Slow builds are a tax that nobody budgets for. Each wait is a few minutes, nobody files a ticket about it, and yet across 300 engineers the lost time can equal a whole team. Leaders get asked this because the hard part is not knowing that Gradle has a build cache; it is getting the investment approved, choosing what to do first, and making it stick across dozens of teams. In this answer, we will see how to measure the baseline, turn it into a cost that management can compare, pick the first changes, roll them out without asking every team to do the work, and keep the results visible.

1Measuring the Baseline

Complaints are a signal, not data. Before proposing anything, I want four numbers for both local and CI builds: the median build time, the p90 build time (the time that 90 percent of builds finish within, which captures the painful ones), how many builds run per day, and how often an engineer is actually waiting rather than doing something else.

The cheapest way to collect this is build scans or a small Gradle plugin in our shared conventions that reports duration, task outcomes and the kind of build, local or CI, to an internal endpoint. For CI we already have the data in the CI system. Two weeks of data is enough for a baseline. Suppose it shows a local median of 4 minutes and p90 of 11 minutes, about 8 builds per engineer per day, and CI pull request builds with a median of 22 minutes.

2Turning Wait Time Into Cost

Now we translate those numbers into money, because that is the language the budget discussion uses. We should be conservative so the case survives scrutiny: not every minute of a build is a lost minute, so we only count part of it.

A conservative cost estimate
ItemAssumptionPer year
Local waiting300 x 8 builds x 4 min x 50% countedabout 17,600 hours
CI waiting300 x 2 PR builds x 22 min x 25% countedabout 12,100 hours
Engineer cost29,700 hours at 100 dollarsabout 3.0 million dollars
CI computeagents and runnersabout 0.5 million dollars
Proposed investment3 build engineers plus cache infrastructureabout 0.8 million dollars
220 working days a year. Even a one-third reduction covers the investment several times.

Notice how large the result is even with cautious assumptions. Even after discounting, engineers lose roughly half an hour a day each, most of it in local builds, and CI compute is a real bill on top. A build team of three engineers plus cache infrastructure, perhaps 0.8 million a year all in, is small in comparison. If the work removes even a third of the waiting, it pays for itself several times over. Those are the figures I would put in front of the engineering leadership, together with the softer cost: long feedback loops make people batch changes, which makes reviews and incidents worse.

3Starting With the Changes That Pay Back Fastest

With approval, I would avoid a big redesign and start with four changes that most Gradle builds can take within weeks. A remote build cache, written by CI and read by everyone, lets a developer who pulls main download compiled classes and test results instead of producing them. The configuration cache removes the 10 to 30 seconds of configuration that large builds pay on every invocation. Parallel execution, org.gradle.parallel=true, runs independent projects' tasks at the same time on multi-core machines. Test splitting, or distribution across CI agents, cuts the longest part of CI builds.

Each one has a measurable effect on the baseline numbers, so we can show progress within the first quarter. Bigger structural work, such as breaking up a module that everything depends on, comes later and is justified by the same data.

Step throughRolling out build performance work
  1. Measure two weeks of buildsmedian, p90, builds per day, waiting
  2. Build the cost caseengineer hours plus CI compute
  3. Pilot quick wins on three reposremote cache, config cache, parallel
  4. Ship them in convention pluginsevery repo upgrades by one version bump
  5. Fix cache misses centrallyvolatile inputs, path sensitivity
  6. Publish dashboards and alertsregressions become visible

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

4Rolling Out Through Convention Plugins

The trap in a 300-engineer organisation is asking every team to tune its own build. Some will, many will not, and the work will be done 40 different ways. Instead, the build team puts the settings into the shared convention plugins and gradle.properties templates that most repositories already apply: build cache configuration, configuration cache compatibility, test settings and toolchains.

Cache misses are fixed the same way. When the team finds that a custom code generation task uses absolute paths, or that build info includes a timestamp, the fix goes into the shared plugin, and every repository benefits with one dependency update, ideally proposed automatically by Renovate or Dependabot. The build team also pairs with the few teams that have unusual builds rather than writing a guide and hoping.

5Keeping Results Visible

Finally, the metrics we collected for the baseline become a standing dashboard: median and p90 build times, cache hit rates, configuration time, and CI queue time, per repository and overall. We publish them monthly in the engineering newsletter or all-hands, show the trend against the baseline, and translate it back into hours saved.

This matters for two reasons. It keeps the investment justified, because the savings are visible to the people who approved it. And it makes regressions visible: if a repository's cache hit rate drops from 80 to 30 percent after a change, an alert reaches the build team the same week, not after a year of slow decline.

6Follow-up questions

What if leadership doubts the cost numbers?

I would show the raw data and the conservative assumptions, then propose a small pilot: three representative repositories for one quarter, with before and after numbers. A pilot turns an estimate into a measurement and costs little. In my experience, once a team sees its CI time drop by half, other teams start asking for it.

Which metric matters most?

For engineers, p90 local build time and p90 pull request CI time, because the slow builds are the ones that break concentration. For the investment case, total hours waited per week. Cache hit rate is a useful diagnostic, but it is a means, not the goal.

Should developers write to the remote cache?

Usually not. CI builds run in a controlled environment and should be the ones that push entries; developer machines read from the cache. This keeps the shared cache full of entries that everyone can trust and avoids filling it with local experiments.

7Conclusion

In this answer, we saw how to justify build performance work in a large organisation: measure median and p90 build times and waiting, turn them into engineer hours and CI compute with conservative assumptions, and compare that with the cost of a small build team. We then start with fast wins, the remote cache, configuration cache, parallel execution and test splitting, roll them out and fix cache misses through shared convention plugins, and publish the metrics so the savings and any regressions stay visible.

What to say in the interviewAbout 90 seconds aloud

Open with

I would start by replacing the complaint with numbers. For two weeks I would collect median and p90 build times for local and CI builds, builds per day, and how often people actually wait, using build scans or a small reporting plugin in our shared conventions.

Then, if they want more

Then I turn that into cost, conservatively. For example, 300 engineers, eight local builds a day at four minutes, counting only half of that as lost, plus CI waiting, comes to tens of thousands of hours a year, several million dollars, plus the CI bill.

A build team of three and the cache infrastructure costs a fraction of that, so even a one-third improvement pays back several times. That is the case I take to leadership, ideally with a small pilot on three repositories to turn estimates into measurements.

For the rollout I pick the fastest wins first: a remote build cache that CI writes and developers read, the configuration cache, parallel execution and test splitting on CI. Crucially, I do not ask 40 teams to tune their builds.

The build team puts these settings and the fixes for cache misses, like absolute paths or timestamps in build info, into the shared convention plugins, so every repository gets them with a version bump. Finally, the metrics become a public dashboard with alerts, so we show the savings and catch regressions early.

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 "Build time across your 300-engineer Java organisation is a growing complaint. How would...": https://scrivio-interview-library.netlify.app/java/gradle/869cd0cabf/