An Introduction to the Mill Build Tool
summary
Mill is a Scala-written general-purpose build tool based on Ammonite and positioned as an sbt alternative with 1.6k stars on GitHub. It defines tasks as T-blocks invoked with empty parentheses, composes cached tasks into an out/ folder, records outputs as JSON using upickle so downstream results are reusable, and uses PathRef hashes plus os-lib for file IO. Plugins are abstract modules, BSP enables IntelliJ support (VS Code currently imports via Bloop), and it cross-compiles JVM and Scala.js (runs in node). Version 0.10 adds first binary-compat guarantees.
AI-written summary · about
chapters (24)
- 0:00Introduction to Mill
- 1:15What is a build tool
- 2:39Tasks and targets in Mill
- 4:04Caching in Mill
- 6:56Task composition
- 9:01Inputs and commands
- 10:47Custom output types
- 12:53Reading files
- 16:09Writing files
- 17:31Modules in Mill
- 18:55Plugins in Mill
- 22:07Sharing plugins
- 23:09Nested modules
- 24:12Discovering tasks
- 25:37Cross modules
- 28:50Building Scala code
- 29:30Editor support
- 31:15Running Scala projects
- 35:04Testing in Mill
- 36:32Module dependencies
- 37:35Cross-platform builds
- 41:08Mill vs SBT
- 43:32Future of Mill
- 44:13Q&A
