Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Half of your 200 repositories use Maven and half use Gradle, and the platform team maintains duplicate tooling for both. Would you mandate one build tool, and how would you decide?

I would not start with a mandate. I would first count what the duplication really costs, in CI templates, security scanning, dependency management, onboarding and support, and compare what each tool gives our actual builds. Usually the pragmatic answer is one default for new projects, funded migrations only where the benefit is clear, and shared policies, such as dependency versions and required plugins, implemented in both tools, because a mandate without migration support creates resentment and stalls. I would revisit the decision when tooling or team structure changes.

Why this question is asked

When a platform team maintains two versions of everything, every improvement costs double and lands twice as slowly. A single tool looks like the obvious fix. But 100 repositories on the other tool represent years of working builds, and the teams that own them have deadlines of their own. Interviewers ask this to see whether a leader can weigh a real organisational cost against the cost of forcing change, and design a path that actually completes. In this answer, we will measure the cost of duplication, compare the tools against our builds, see why a bare mandate fails, design a pragmatic path, and decide how to keep the decision current.

1Counting the Cost of Duplication

The platform team's complaint is real, so the first job is to make it concrete. I would list every piece of tooling that exists twice and estimate the effort it takes per year: CI pipeline templates for both tools, security scanning and SBOM generation integrated twice, dependency version management as a parent POM plus convention plugins, artifact signing and publishing, the internal documentation and onboarding material, and support questions in the help channel.

Suppose this shows that duplication costs about 1.5 engineers a year on a platform team of eight, plus slower rollout of policies: a new security requirement takes six weeks instead of three because it has to be built and tested twice. That is the benefit side of standardising, and it is smaller than people often assume, which matters for the next step.

Where duplication costs the platform team
AreaDone twice todayRough cost per year
CI templatesMaven and Gradle pipelines0.4 engineer
Security scanning, SBOMTwo integrations to keep current0.3 engineer
Dependency managementParent POM and convention plugins0.3 engineer
Onboarding and docsTwo guides, two sets of examples0.2 engineer
SupportQuestions about both tools0.3 engineer
Illustrative figures: about 1.5 engineers a year, plus slower policy rollout.

2Comparing the Tools Against Our Real Builds

Next, which tool would we choose, and does it matter for our builds? Maven's strengths are convention and stability: a declarative pom that every Java developer can read, few surprises across versions, and very broad familiarity among hires. Gradle's strengths are performance, incremental builds, a remote build cache and the configuration cache, and flexibility for unusual builds.

Those strengths matter differently by build size. If most of our 200 repositories are small services with builds under five minutes, Gradle's speed advantage is small for them and Maven's simplicity is valuable. If several are large multi-module builds that take 20 minutes, Gradle can save a lot there. So I would look at the distribution of build times and sizes across both halves, not at general opinions.

3Why a Mandate Alone Fails

Suppose we announce that everything must be on Maven by the end of next year. Each of the 100 Gradle teams now has unplanned work that competes with their product roadmap, for a benefit that goes to the platform team. Teams that chose Gradle for a reason, such as build speed, lose that benefit. The likely result is a slow, resentful migration that is 60 percent done after two years, which means the platform team still supports both tools, and has spent goodwill in the process.

A mandate can work, but only if it is funded: a migration team or dedicated time that does most of the work, tooling that automates the mechanical parts, and a clear benefit for the teams being migrated, not only for the platform. If we are not willing to fund it, we should not mandate it.

4A Pragmatic Path

The path I would usually propose has three parts. First, one default for new projects, chosen from the comparison above; new repositories start on it from a template, so the share of the other tool shrinks naturally as old services are retired. Second, funded migrations only where the benefit is clear: small, simple builds on the non-default tool that the platform team can convert cheaply, or large builds where switching to Gradle gives a measurable speedup. Third, shared policies implemented in both tools for everything else.

Shared policies are what keep two tools from meaning two standards. Both tools import the same company BOM, so dependency versions match. Both apply the same required checks, the same SBOM format, the same signing and the same CI stages, so the security and operations teams see one standard regardless of tool. This also cuts the duplication cost, because the policy is defined once and only its wiring is duplicated.

Step throughDeciding the build tool policy
  1. Measure the duplication costengineer time, slower policy rollout
  2. Compare tools on our buildssize and time distribution
  3. Willing to fund a full migration?team, automation, clear benefit
    YesMandate with funded migrationNoPragmatic path
  4. Pragmatic pathdefault for new repos, targeted migrations
  5. Shared policies in both toolsBOM, SBOM, signing, CI stages
  6. Revisit yearlytooling, team structure, the numbers

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

5Keeping the Decision Current

This decision is not permanent. Build tooling changes, for example when Maven's caching options mature or Gradle's configuration cache becomes standard, and team structures change, for example after an acquisition brings 50 repositories on one tool. So I would record the decision with its reasons and numbers, and revisit it once a year or whenever one of those things changes.

The yearly check looks at the same measures: the share of repositories on each tool, the duplication cost, and the build times of large builds. If the default for new projects has quietly brought the non-default tool down to 15 percent, a funded final migration may now be cheap enough to finish the job.

6Follow-up questions

How would you choose the default for new projects?

From our own data: which tool most teams already know, which one the platform tooling supports best today, and whether our new services tend to be small or large. For an organisation of mostly small Spring Boot services, Maven is a perfectly good default; for one with many large multi-module builds, Gradle's performance may tip it. Either is defensible if the reasons are written down.

What do you say to a team that refuses to migrate?

If they are in the targeted group, I ask what it would take: often their concern is time, which funded migration addresses, or a specific build feature, which we can check. If their build is not in the targeted group, they do not need to migrate, as long as they follow the shared policies.

Can policies really be identical in both tools?

The outcomes can be, even if the wiring differs. A company BOM works in both, SBOM generators exist for both, signing and publishing work in both, and CI templates can expose the same stages. We test the outcome, for example that every artifact has an SBOM and a signature, rather than how it was produced.

7Conclusion

In this answer, we saw how to decide whether to mandate one build tool for 200 repositories: count the real cost of duplicated CI templates, security scanning, dependency management, onboarding and support, compare Maven's convention and stability with Gradle's performance and flexibility against our actual build sizes, and recognise that a mandate without funded migration creates resentment and stalls. The pragmatic path is one default for new projects, migrations where the benefit is clear, and shared policies implemented in both tools, with the decision revisited when tooling or team structure changes.

What to say in the interviewAbout 90 seconds aloud

Open with

My first move would be to measure, not mandate. I would list everything the platform team builds twice, CI templates, security scanning and SBOMs, dependency management as a parent POM and convention plugins, onboarding docs and support, and estimate it in engineer time, plus how much slower policies roll out.

Then, if they want more

Then I would compare the tools against our real builds: Maven gives convention, stability and familiarity, Gradle gives speed through caching and more flexibility, and which matters depends on whether our repos are mostly small services or large multi-module builds.

With that data, a bare mandate usually looks bad: it hands 100 teams unplanned work for a benefit that goes to the platform team, it drags on for years, and in the meantime we still support both. A mandate only makes sense if we fund the migration with people and automation.

So the path I would usually propose is one default tool for new projects, migrations where the benefit is clear, like simple builds we can convert cheaply or large builds that gain speed, and shared policies in both tools for everything else: the same company BOM, the same required checks, SBOM, signing and CI stages.

That keeps one standard even with two tools. And I would write the decision down with its numbers and revisit it yearly or when tooling or team structure changes.

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 "Half of your 200 repositories use Maven and half use Gradle, and the platform team...": https://scrivio-interview-library.netlify.app/java/gradle/8a41f9e77f/