Building Scala with Bazel
summary
Wix migrates a large Scala backend from Maven to Bazel and reports build time drops from ~45 minutes to under a minute with caching and to ~8.5 minutes using remote execution on Google Cloud; repo stats: ~250 developers, ~750 microservices, ~10M LOC. Demonstrations cover rule_scala, the sandboxed inputs for reproducible builds, persistent workers that halve local compile time (61s → 30s in one demo), and tooling for strict dependencies plus automatic dependency fixes and buildozer to keep targets small and incremental.
AI-written summary · about
chapters (7)
- 0:00Start
- 4:51The basic build unit is called a target
- 8:20MANY SMALL TARGETS
- 11:08REMOTE EXECUTION
- 25:34DEPENDENCY MGMT RUN THE SCALA COMPILER WITH FLAGS
- 34:23Migration Stories
- 35:41BAZEL IS WORTH IT
related talks
37mScala with Bazel
32mSpeedy Scala Builds at Databricks
08mLightning Talk – Speedy Scala Builds with Bazel at Databricks
08mScala, Bazel and VirtusLab
47m5 Things You Need To Know About Scala Compilation
45mSimpler Scala Builds with Functional and Object-Oriented Programming
47mEasy Scala Builds with the Mill Build Tool
28mX-Ray your Build: Build Events, Build Scans, and Caching Explained
